mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-31 13:59:29 +00:00
User: updated LoggedInFrom() to convert ipv6 mapped ipv4 address.
This commit is contained in:
@@ -165,6 +165,9 @@ namespace DnsServerCore.Auth
|
||||
|
||||
public void LoggedInFrom(IPAddress remoteAddress)
|
||||
{
|
||||
if (remoteAddress.IsIPv4MappedToIPv6)
|
||||
remoteAddress = remoteAddress.MapToIPv4();
|
||||
|
||||
_previousSessionLoggedOn = _recentSessionLoggedOn;
|
||||
_previousSessionRemoteAddress = _recentSessionRemoteAddress;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user