1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-17 07:36:32 +09:00

Fixed null ref exception. Fixed problem with wrong ip address.

This commit is contained in:
Badartefact
2019-06-14 12:13:14 +03:00
parent d577f874a9
commit 37cd6ac2c3
2 changed files with 8 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ namespace Lidgren.Network
return null;
foreach (var address in addresses)
{
if (address.AddressFamily == AddressFamily.InterNetwork || ipAddress.AddressFamily == AddressFamily.InterNetworkV6)
if (address.AddressFamily == AddressFamily.InterNetwork || address.AddressFamily == AddressFamily.InterNetworkV6)
return address;
}
return null;