Manual option for master server

This will only trigger when SRV lookup fails.
This commit is contained in:
oldmud0 2018-06-02 23:36:34 -05:00
parent f5e0177b9e
commit 7e4be0edd7
2 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,11 @@ NetworkManager::NetworkManager(AOApplication *parent) : QObject(parent)
QObject::connect(ms_socket, SIGNAL(readyRead()), this, SLOT(handle_ms_packet()));
QObject::connect(server_socket, SIGNAL(readyRead()), this, SLOT(handle_server_packet()));
QObject::connect(server_socket, SIGNAL(disconnected()), ao_app, SLOT(server_disconnected()));
QString master_config = ao_app->read_config("master");
if (master_config != "") {
ms_nosrv_hostname = master_config;
}
}
NetworkManager::~NetworkManager()

View File

@ -38,9 +38,9 @@ public:
const QString ms_srv_hostname = "_aoms._tcp.aceattorneyonline.com";
#ifdef LOCAL_MS
const QString ms_nosrv_hostname = "localhost";
QString ms_nosrv_hostname = "localhost";
#else
const QString ms_nosrv_hostname = "master.aceattorneyonline.com";
QString ms_nosrv_hostname = "master.aceattorneyonline.com";
#endif
const int ms_port = 27016;