Fixed ConnectionInfo.Identity returning wrong thing

This commit is contained in:
Garry Newman 2020-03-02 10:03:38 +00:00
parent 1797505960
commit 36e5e50d85
2 changed files with 6 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public struct ConnectionInfo
/// <summary>
/// Who is on the other end? Depending on the connection type and phase of the connection, we might not know
/// </summary>
public NetIdentity Identity => address;
public NetIdentity Identity => identity;
/// <summary>
/// Basic cause of the connection termination or problem.

View File

@ -136,6 +136,11 @@ public IPAddress Address
return Utility.Int32ToIp( ip );
}
if ( IsIPv6AllZeros )
{
return IPAddress.IPv6Loopback;
}
throw new System.NotImplementedException( "Oops - no IPV6 support yet?" );
}
}