Core/RemoteAccess: Added support for remote access using email/password.

This commit is contained in:
hondacrx
2021-03-15 14:04:47 -04:00
parent c521848465
commit ecad90c7d4
7 changed files with 364 additions and 2 deletions
+13
View File
@@ -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");