mirror of
https://github.com/bitwarden/server.git
synced 2025-02-02 23:41:21 +01:00
add ::ffff: to internal ip check (#1701)
* add ::ffff: to internal ip check * check StartsWith
This commit is contained in:
parent
fd37cb5a12
commit
9582e94232
@ -7,7 +7,6 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Icons.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text;
|
||||
using AngleSharp.Html.Parser;
|
||||
|
||||
@ -428,7 +427,7 @@ namespace Bit.Icons.Services
|
||||
}
|
||||
|
||||
var ipString = ip.ToString();
|
||||
if (ipString == "::1" || ipString == "::")
|
||||
if (ipString == "::1" || ipString == "::" || ipString.StartsWith("::ffff:"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user