From 722da92e93a1b6d4df86373d64ff2da8337e813e Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:05:46 -0500 Subject: [PATCH] Added NAT puncher port as environment variable --- ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs index 5274327..752c73f 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs @@ -43,6 +43,8 @@ namespace LightReflectiveMirror conf.EndpointPort = ushort.Parse(Environment.GetEnvironmentVariable("LRM_ENDPOINT_PORT")); conf.TransportPort = ushort.Parse(Environment.GetEnvironmentVariable("LRM_TRANSPORT_PORT")); + + conf.NATPunchtroughPort = ushort.Parse(Environment.GetEnvironmentVariable("LRM_PUNCHER_PORT")); } catch { }