mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
* if for whatever reason the world server is not sending an address, use the local address it sends * Log when world is sending loginserver info * Force legacy mode when login host is login.eqemulator.net to avoid misconfigurations at least until things change * Add human IP translation to log messages * Sanitize world server name * Code cleanup and renaming member variables * More cleanup * Remove this-> * Validation constants * Key worldserver lookups by both longname and shortname both * Update allowed character list * Fix short_name API response field; add world_id to response * Shorten receiver verbosity * Remove unnecessary member variables from database and rename database to m_database * Adjust MAX_SERVER_VERSION_LENGTH * Fix indents
34 lines
784 B
C++
34 lines
784 B
C++
#ifndef EQEMU_LOGINSERVER_H
|
|
#define EQEMU_LOGINSERVER_H
|
|
|
|
#include <utility>
|
|
#include "../common/json_config.h"
|
|
#include "database.h"
|
|
#include "encryption.h"
|
|
#include "options.h"
|
|
#include "server_manager.h"
|
|
#include "client_manager.h"
|
|
#include "loginserver_webserver.h"
|
|
|
|
/**
|
|
* Login server struct, contains every variable for the server that needs to exist outside the scope of main()
|
|
*/
|
|
struct LoginServer
|
|
{
|
|
public:
|
|
|
|
LoginServer() : db(nullptr), server_manager(nullptr) {
|
|
|
|
}
|
|
|
|
EQ::JsonConfigFile config;
|
|
Database *db;
|
|
LoginserverWebserver::TokenManager *token_manager{};
|
|
Options options;
|
|
ServerManager *server_manager;
|
|
ClientManager *client_manager{};
|
|
};
|
|
|
|
#endif
|
|
|