From 30468fd7cc65a49e662cff6c90280aa21ed552fc Mon Sep 17 00:00:00 2001 From: cxxpxr <60411087+cxxpxr@users.noreply.github.com> Date: Sun, 11 Apr 2021 19:16:31 -0400 Subject: [PATCH] Update LightReflectiveMirrorTransport.cs --- .../LRM/LRMTransport/LightReflectiveMirrorTransport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs index a939270..2fd399c 100644 --- a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs +++ b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs @@ -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;