mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Added compatibility layer for boost 1.66 and future std:: networking stuff
* Based on work done by @dimiandre in PR #21173 Closes #21171 Closes #21173
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "Util.h"
|
||||
#include "Common.h"
|
||||
#include <boost/asio/ip/address.hpp>
|
||||
#include "IpAddress.h"
|
||||
#include <utf8.h>
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
@@ -216,7 +216,7 @@ bool IsIPAddress(char const* ipaddress)
|
||||
return false;
|
||||
|
||||
boost::system::error_code error;
|
||||
boost::asio::ip::address::from_string(ipaddress, error);
|
||||
Trinity::Net::make_address(ipaddress, error);
|
||||
return !error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user