lidgren-network-gen3
lidgren-network-gen3 copied to clipboard
Windows in airplane mode gives an error.
Putting windows 10 in airplane mode (or having wifi disabled) generates a null reference exception. Lidgren tries to aquire an ip address but in airplane mode there is no ip address available.
I came by this when using Lidgren in Unity3D.
(partial) stack trace below.
NullReferenceException: Object reference not set to an instance of an object Lidgren.Network.NetUtility.GetBroadcastAddress () (at Assets/Scripts/External/Lindgren/Platform/PlatformWin32.cs:86) Lidgren.Network.NetPeerConfiguration..ctor (System.String appIdentifier) (at Assets/Scripts/External/Lindgren/NetPeerConfiguration.cs:98)
@Victov fix the error, create a pull request :]
@Victov may be I will try to fix it myself as I run into the same issue.