simplify masterserver type selection
Use a plain cubescript variable instead of a commandline switch. mastertype 0: classic direct TCP connection 1: HTTP connection (via proxy) (default) DOCREF mastertype "--mastertype="
This commit is contained in:
@@ -19,7 +19,7 @@ int connectwithtimeout(ENetSocket sock, const char *hostname, ENetAddress &remot
|
||||
ENetSocket mastersock = ENET_SOCKET_NULL;
|
||||
ENetAddress masteraddress = { ENET_HOST_ANY, ENET_PORT_ANY }, serveraddress = { ENET_HOST_ANY, ENET_PORT_ANY };
|
||||
string mastername = AC_MASTER_URI;
|
||||
int masterport = AC_MASTER_PORT, mastertype = AC_MASTER_HTTP;
|
||||
int masterport = AC_MASTER_PORT;
|
||||
int lastupdatemaster = 0;
|
||||
vector<char> masterout, masterin;
|
||||
int masteroutpos = 0, masterinpos = 0;
|
||||
|
||||
Reference in New Issue
Block a user