Revert "Adjust default ports from 49xxx range to 43xxx range"

This reverts commit 0a1689ae10.
feature/core4-atys
kaetemi 3 years ago
parent 4fe7175916
commit 2fc5798f67
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -612,7 +612,7 @@ void initAdmin (bool dontUseAES)
{ {
CUnifiedNetwork::getInstance()->setServiceUpCallback ("AES", cbAESConnection, NULL); CUnifiedNetwork::getInstance()->setServiceUpCallback ("AES", cbAESConnection, NULL);
CUnifiedNetwork::getInstance()->setServiceDownCallback ("AES", cbAESDisconnection, NULL); CUnifiedNetwork::getInstance()->setServiceDownCallback ("AES", cbAESDisconnection, NULL);
CUnifiedNetwork::getInstance()->addService ("AES", CInetAddress("localhost:43997")); CUnifiedNetwork::getInstance()->addService ("AES", CInetAddress("localhost:49997"));
} }
CUnifiedNetwork::getInstance()->addCallbackArray (CallbackArray, sizeof(CallbackArray)/sizeof(CallbackArray[0])); CUnifiedNetwork::getInstance()->addCallbackArray (CallbackArray, sizeof(CallbackArray)/sizeof(CallbackArray[0]));
} }

@ -141,7 +141,7 @@ string CLoginClient::authenticateBegin(const string &loginServiceAddr, const ucs
string addr = loginServiceAddr; string addr = loginServiceAddr;
if(addr.find(":") == string::npos) if(addr.find(":") == string::npos)
addr += ":43997"; addr += ":49997";
if(_LSCallbackClient->connected()) if(_LSCallbackClient->connected())
_LSCallbackClient->disconnect(); _LSCallbackClient->disconnect();
_LSCallbackClient->connect (CInetAddress(addr)); _LSCallbackClient->connect (CInetAddress(addr));

@ -391,7 +391,7 @@ void CBSIINonModule::activate()
return; return;
} }
if (host.find (":") == string::npos) if (host.find (":") == string::npos)
host+= ":43990"; host+= ":49990";
_BSMasterAddress = CInetAddress(host); _BSMasterAddress = CInetAddress(host);
CUnifiedNetwork::getInstance()->addService ("BS", _BSMasterAddress); CUnifiedNetwork::getInstance()->addService ("BS", _BSMasterAddress);
@ -401,7 +401,7 @@ void CBSIINonModule::activate()
if (!host.empty()) if (!host.empty())
{ {
if (host.find (":") == string::npos) if (host.find (":") == string::npos)
host+= ":43990"; host+= ":49990";
_BSSlaveAddress = CInetAddress(host); _BSSlaveAddress = CInetAddress(host);
CUnifiedNetwork::getInstance()->addService ("BS", _BSSlaveAddress); CUnifiedNetwork::getInstance()->addService ("BS", _BSSlaveAddress);
@ -413,7 +413,7 @@ void CBSIINonModule::activate()
// if (_HaveSeparatePDBS) // if (_HaveSeparatePDBS)
// { // {
// if (host.find (":") == string::npos) // if (host.find (":") == string::npos)
// host+= ":43990"; // host+= ":49990";
// CUnifiedNetwork::getInstance()->addService ("PDBS", CInetAddress(host)); // CUnifiedNetwork::getInstance()->addService ("PDBS", CInetAddress(host));
// //
// // connect to the global slave bs if any // // connect to the global slave bs if any
@ -421,7 +421,7 @@ void CBSIINonModule::activate()
// if (!host.empty()) // if (!host.empty())
// { // {
// if (host.find (":") == string::npos) // if (host.find (":") == string::npos)
// host+= ":43990"; // host+= ":49990";
// CUnifiedNetwork::getInstance()->addService ("PDBS", CInetAddress(host)); // CUnifiedNetwork::getInstance()->addService ("PDBS", CInetAddress(host));
// } // }
// } // }

@ -723,7 +723,7 @@ void CBackupService::init()
// I'm a slave, try to contact master // I'm a slave, try to contact master
string host = MasterBSHost.get(); string host = MasterBSHost.get();
if (host.find (":") == string::npos) if (host.find (":") == string::npos)
host += ":43990"; host += ":49990";
CUnifiedNetwork::getInstance()->addService ("BS", CInetAddress(host)); CUnifiedNetwork::getInstance()->addService ("BS", CInetAddress(host));
} }
@ -774,7 +774,7 @@ static const char* getShortServiceName(const IService* theService, const char *d
return s.c_str(); return s.c_str();
} }
NLNET_SERVICE_MAIN( CBackupService, getShortServiceName(scn, "BS"), getCompleteServiceName(scn, "backup_service"), 43990, CbArray, "", "" ) NLNET_SERVICE_MAIN( CBackupService, getShortServiceName(scn, "BS"), getCompleteServiceName(scn, "backup_service"), 49990, CbArray, "", "" )
void CDirectoryRateStat::clear() void CDirectoryRateStat::clear()

@ -129,7 +129,7 @@ TUnifiedCallbackItem CbArray[]=
{ "CHANGE_UNAME", CMailForumService::cbChangeUserName }, { "CHANGE_UNAME", CMailForumService::cbChangeUserName },
}; };
NLNET_SERVICE_MAIN( CMailForumService, "MFS", "mail_forum_service", 43980, CbArray, "", "" ) NLNET_SERVICE_MAIN( CMailForumService, "MFS", "mail_forum_service", 49980, CbArray, "", "" )

@ -1291,7 +1291,7 @@ public:
// add default port if not set by the config file // add default port if not set by the config file
if (LSAddr.find (":") == string::npos) if (LSAddr.find (":") == string::npos)
LSAddr += ":43999"; LSAddr += ":49999";
AllowDispatchMsgToLS = true; AllowDispatchMsgToLS = true;

@ -229,7 +229,7 @@ bool CMailForumValidator::init()
{ {
string host = hostvar->asString(); string host = hostvar->asString();
if (host.find (":") == string::npos) if (host.find (":") == string::npos)
host+= ":43980"; host+= ":49980";
CUnifiedNetwork::getInstance()->addService("MFS", CInetAddress(host)); // warning: can call the serviceUp callback => initMFS() again CUnifiedNetwork::getInstance()->addService("MFS", CInetAddress(host)); // warning: can call the serviceUp callback => initMFS() again
} }

Loading…
Cancel
Save