added -ip so you are able to specify which ip to bind the server
This commit is contained in:
@@ -273,7 +273,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
partial void InitProjSpecific();
|
||||
|
||||
public ServerSettings(NetworkMember networkMember, string serverName, int port, int queryPort, int maxPlayers, bool isPublic, bool enableUPnP)
|
||||
public ServerSettings(NetworkMember networkMember, string serverName, int port, int queryPort, int maxPlayers, bool isPublic, bool enableUPnP, IPAddress listenIp)
|
||||
{
|
||||
ServerLog = new ServerLog(serverName);
|
||||
|
||||
@@ -288,6 +288,7 @@ namespace Barotrauma.Networking
|
||||
InitProjSpecific();
|
||||
|
||||
ServerName = serverName;
|
||||
ListenIPAddress = listenIp;
|
||||
Port = port;
|
||||
QueryPort = queryPort;
|
||||
EnableUPnP = enableUPnP;
|
||||
@@ -359,6 +360,8 @@ namespace Barotrauma.Networking
|
||||
|
||||
public int QueryPort;
|
||||
|
||||
public IPAddress ListenIPAddress;
|
||||
|
||||
public bool EnableUPnP;
|
||||
|
||||
public ServerLog ServerLog;
|
||||
|
||||
Reference in New Issue
Block a user