Core/RemoteAccess: Added support for remote access using email/password.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
using Framework.Configuration;
|
||||
using Framework.Constants;
|
||||
using Framework.Database;
|
||||
using Framework.Networking;
|
||||
using Game;
|
||||
using Game.Chat;
|
||||
using Game.Networking;
|
||||
@@ -58,6 +59,18 @@ namespace WorldServer
|
||||
|
||||
Global.WorldMgr.SetInitialWorldSettings();
|
||||
|
||||
// Start the Remote Access port (acceptor) if enabled
|
||||
if (ConfigMgr.GetDefaultValue("Ra.Enable", false))
|
||||
{
|
||||
int raPort = ConfigMgr.GetDefaultValue("Ra.Port", 3443);
|
||||
string raListener = ConfigMgr.GetDefaultValue("Ra.IP", "0.0.0.0");
|
||||
AsyncAcceptor raAcceptor = new();
|
||||
if (!raAcceptor.Start(raListener, raPort))
|
||||
Log.outError(LogFilter.Server, "Failed to initialize RemoteAccess Socket Server");
|
||||
else
|
||||
raAcceptor.AsyncAccept<RASocket>();
|
||||
}
|
||||
|
||||
// Launch the worldserver listener socket
|
||||
int worldPort = WorldConfig.GetIntValue(WorldCfg.PortWorld);
|
||||
string worldListener = ConfigMgr.GetDefaultValue("BindIP", "0.0.0.0");
|
||||
|
||||
Reference in New Issue
Block a user