Adjust default ports from 49xxx range to 43xxx range

ryzomclassic-develop
kaetemi 3 years ago
parent cda6770adb
commit 0a1689ae10
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()->setServiceDownCallback ("AES", cbAESDisconnection, NULL);
CUnifiedNetwork::getInstance()->addService ("AES", CInetAddress("localhost:49997"));
CUnifiedNetwork::getInstance()->addService ("AES", CInetAddress("localhost:43997"));
}
CUnifiedNetwork::getInstance()->addCallbackArray (CallbackArray, sizeof(CallbackArray)/sizeof(CallbackArray[0]));
}

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

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

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

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

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

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

Loading…
Cancel
Save