You've already forked lidgren-network-gen3
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user