Reverse Proxy

This commit is contained in:
MrGadget1024 2023-01-27 04:09:09 -05:00
parent 28829e7f61
commit 6030838d76
3 changed files with 24 additions and 9 deletions

View File

@ -1,9 +1,11 @@
{ {
"name": "Mirror.Examples", "name": "Mirror.Examples",
"rootNamespace": "",
"references": [ "references": [
"Mirror", "GUID:30817c1a0e6d646d99c048fc403f5979",
"Mirror.Components", "GUID:72872094b21c16e48b631b2224833d49",
"Unity.TextMeshPro" "GUID:6055be8ebefd69e48b49212b09b47b2f",
"GUID:3b5390adca4e2bb4791cb930316d6f3e"
], ],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],

View File

@ -928,6 +928,8 @@ MonoBehaviour:
m_Value: 0 m_Value: 0
m_Options: m_Options:
m_Options: m_Options:
- m_Text: mirrornt.idev.dl.je
m_Image: {fileID: 0}
- m_Text: mirror.clevertech.net - m_Text: mirror.clevertech.net
m_Image: {fileID: 0} m_Image: {fileID: 0}
- m_Text: localhost - m_Text: localhost
@ -1566,8 +1568,8 @@ MonoBehaviour:
clientMaxMessagesPerTick: 1000 clientMaxMessagesPerTick: 1000
batchSend: 1 batchSend: 1
waitBeforeSend: 0 waitBeforeSend: 0
clientUseWss: 1 clientUseWss: 0
sslEnabled: 1 sslEnabled: 0
sslCertJson: ./cert.json sslCertJson: ./cert.json
sslProtocols: 3072 sslProtocols: 3072
_logLevels: 0 _logLevels: 0
@ -1591,8 +1593,8 @@ MonoBehaviour:
offlineScene: Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity offlineScene: Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity
onlineScene: Assets/Mirror/Examples/TestNT/Scenes/Online.unity onlineScene: Assets/Mirror/Examples/TestNT/Scenes/Online.unity
transport: {fileID: 821201134} transport: {fileID: 821201134}
networkAddress: mirror.clevertech.net networkAddress: mirrornt.idev.dl.je
maxConnections: 100 maxConnections: 500
authenticator: {fileID: 821201138} authenticator: {fileID: 821201138}
playerPrefab: {fileID: 2033010110135952297, guid: 10f39bef276942448bfdfba062b6b6e0, type: 3} playerPrefab: {fileID: 2033010110135952297, guid: 10f39bef276942448bfdfba062b6b6e0, type: 3}
autoCreatePlayer: 1 autoCreatePlayer: 1
@ -2198,7 +2200,7 @@ MonoBehaviour:
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_text: mirror.clevertech.net m_text: mirrornt.idev.dl.je
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}

View File

@ -31,9 +31,20 @@ public void SetHostname(string hostname)
public void OnSelectServer(int server) public void OnSelectServer(int server)
{ {
if (server == 0) if (server == 0)
SetHostname("mirror.clevertech.net"); {
SetHostname("mirrornt.idev.dl.je");
((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 443;
}
if (server == 1) if (server == 1)
{
SetHostname("mirror.clevertech.net");
((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 7778;
}
if (server == 2)
{
SetHostname("localhost"); SetHostname("localhost");
((Mirror.SimpleWeb.SimpleWebTransport)transport).port = 7778;
}
} }
#region Unity Callbacks #region Unity Callbacks