From 6030838d76e010cef779964d2706c603870233b6 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 27 Jan 2023 04:09:09 -0500 Subject: [PATCH] Reverse Proxy --- Assets/Mirror/Examples/Mirror.Examples.asmdef | 8 +++++--- .../Mirror/Examples/TestNT/Scenes/OfflineWeb.unity | 12 +++++++----- .../Examples/TestNT/Scripts/TestNTNetworkManager.cs | 13 ++++++++++++- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Assets/Mirror/Examples/Mirror.Examples.asmdef b/Assets/Mirror/Examples/Mirror.Examples.asmdef index 67d9ce5d0..45d3d0165 100644 --- a/Assets/Mirror/Examples/Mirror.Examples.asmdef +++ b/Assets/Mirror/Examples/Mirror.Examples.asmdef @@ -1,9 +1,11 @@ { "name": "Mirror.Examples", + "rootNamespace": "", "references": [ - "Mirror", - "Mirror.Components", - "Unity.TextMeshPro" + "GUID:30817c1a0e6d646d99c048fc403f5979", + "GUID:72872094b21c16e48b631b2224833d49", + "GUID:6055be8ebefd69e48b49212b09b47b2f", + "GUID:3b5390adca4e2bb4791cb930316d6f3e" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity index d96d62111..2ed9411c6 100644 --- a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity +++ b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity @@ -928,6 +928,8 @@ MonoBehaviour: m_Value: 0 m_Options: m_Options: + - m_Text: mirrornt.idev.dl.je + m_Image: {fileID: 0} - m_Text: mirror.clevertech.net m_Image: {fileID: 0} - m_Text: localhost @@ -1566,8 +1568,8 @@ MonoBehaviour: clientMaxMessagesPerTick: 1000 batchSend: 1 waitBeforeSend: 0 - clientUseWss: 1 - sslEnabled: 1 + clientUseWss: 0 + sslEnabled: 0 sslCertJson: ./cert.json sslProtocols: 3072 _logLevels: 0 @@ -1591,8 +1593,8 @@ MonoBehaviour: offlineScene: Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity onlineScene: Assets/Mirror/Examples/TestNT/Scenes/Online.unity transport: {fileID: 821201134} - networkAddress: mirror.clevertech.net - maxConnections: 100 + networkAddress: mirrornt.idev.dl.je + maxConnections: 500 authenticator: {fileID: 821201138} playerPrefab: {fileID: 2033010110135952297, guid: 10f39bef276942448bfdfba062b6b6e0, type: 3} autoCreatePlayer: 1 @@ -2198,7 +2200,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: mirror.clevertech.net + m_text: mirrornt.idev.dl.je m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} diff --git a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs index f0118ff05..cdc531e4d 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs @@ -31,9 +31,20 @@ public void SetHostname(string hostname) public void OnSelectServer(int server) { if (server == 0) - SetHostname("mirror.clevertech.net"); + { + SetHostname("mirrornt.idev.dl.je"); + ((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 443; + } if (server == 1) + { + SetHostname("mirror.clevertech.net"); + ((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 7778; + } + if (server == 2) + { SetHostname("localhost"); + ((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 7778; + } } #region Unity Callbacks