mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Server] Configuration Issues Checker (LAN Detection) (#2283)
* LAN detect * Add more checks, consolidate logic * Tweaks * Tweaks * Update world_config.cpp * Tweak logic * Add DNS resolution * Delete task runner after being used * JSON path notation adjust
This commit is contained in:
+8
-1
@@ -30,7 +30,14 @@ public:
|
||||
static uint32_t IPToUInt(const std::string &ip);
|
||||
static bool IsIpInRange(const std::string &ip, const std::string &network, const std::string &mask);
|
||||
static bool IsIpInPrivateRfc1918(const std::string &ip);
|
||||
static std::string GetLocalIPAddress();
|
||||
static std::string GetPublicIPAddress();
|
||||
static std::string DNSLookupSync(
|
||||
const std::string &addr,
|
||||
int port
|
||||
);
|
||||
static bool IsIPAddress(const std::string &ip_address);
|
||||
|
||||
};
|
||||
|
||||
#endif //EQEMU_IP_UTIL_H
|
||||
#endif //EQEMU_IP_UTIL_H
|
||||
|
||||
Reference in New Issue
Block a user