Skip to content

Commit acad174

Browse files
committed
Removed relay settings from NetworkConfig
1 parent 875d615 commit acad174

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

MLAPI/Data/NetworkConfig.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ public class NetworkConfig
2929
/// </summary>
3030
public IUDPTransport NetworkTransport = null;
3131
/// <summary>
32-
/// Only used if the transport is MLPAI-Relay
33-
/// </summary>
34-
public string RelayAddress = "127.0.0.1";
35-
/// <summary>
36-
/// Only used if the transport is MLPAI-Relay
37-
/// </summary>
38-
public ushort RelayPort = 8888;
39-
/// <summary>
40-
/// Wheter or not to use the relay
41-
/// </summary>
42-
public bool RelayEnabled = true;
43-
/// <summary>
4432
/// Channels used by the NetworkedTransport
4533
/// </summary>
4634
[HideInInspector]

MLAPI/Data/Transports/UNET/RelayTransport.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ private enum MessageType
2525
private static ushort port;
2626
private static List<ChannelQOS> channels = new List<ChannelQOS>();
2727

28-
public static bool Enabled => NetworkingManager.Singleton.NetworkConfig.RelayEnabled;
29-
public static string RelayAddress => NetworkingManager.Singleton.NetworkConfig.RelayAddress;
30-
public static ushort RelayPort => NetworkingManager.Singleton.NetworkConfig.RelayPort;
28+
public static bool Enabled { get; set; } = true;
29+
public static string RelayAddress { get; set; } = "127.0.0.1";
30+
public static ushort RelayPort { get; set; } = 8888;
3131

3232
public static int Connect(int hostId, string serverAddress, int serverPort, int exceptionConnectionId, out byte error)
3333
{

0 commit comments

Comments
 (0)