Update LightReflectiveMirrorTransport.cs

This commit is contained in:
cxxpxr 2021-04-11 19:16:31 -04:00
parent 950ad45892
commit 30468fd7cc

View file

@ -263,7 +263,7 @@ namespace LightReflectiveMirror
break;
case OpCodes.RequestNATConnection:
// Called when the LRM node would like us to establish a NAT puncher connection. Its safe to ignore if NAT punch is disabled.
if (GetLocalIp() != null && _directConnectModule != null)
if (GetLocalIp() != null && _directConnectModule != null && useNATPunch)
{
byte[] initalData = new byte[150];
int sendPos = 0;