Update LightReflectiveMirrorTransport.cs
This commit is contained in:
parent
950ad45892
commit
30468fd7cc
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ namespace LightReflectiveMirror
|
||||||
break;
|
break;
|
||||||
case OpCodes.RequestNATConnection:
|
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.
|
// 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];
|
byte[] initalData = new byte[150];
|
||||||
int sendPos = 0;
|
int sendPos = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue