mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Network: Fix typo in AsyncAcceptor function name (#30975)
This commit is contained in:
@@ -39,7 +39,7 @@ class AsyncAcceptor
|
||||
public:
|
||||
AsyncAcceptor(Asio::IoContext& ioContext, std::string const& bindIp, uint16 port) :
|
||||
_acceptor(ioContext), _endpoint(make_address(bindIp), port),
|
||||
_socket(ioContext), _closed(false), _socketFactory([this] { return DefeaultSocketFactory(); })
|
||||
_socket(ioContext), _closed(false), _socketFactory([this] { return DefaultSocketFactory(); })
|
||||
{
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
void SetSocketFactory(std::function<std::pair<IoContextTcpSocket*, uint32>()> func) { _socketFactory = std::move(func); }
|
||||
|
||||
private:
|
||||
std::pair<IoContextTcpSocket*, uint32> DefeaultSocketFactory() { return std::make_pair(&_socket, 0); }
|
||||
std::pair<IoContextTcpSocket*, uint32> DefaultSocketFactory() { return std::make_pair(&_socket, 0); }
|
||||
|
||||
boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, IoContextTcpSocket::executor_type> _acceptor;
|
||||
boost::asio::ip::tcp::endpoint _endpoint;
|
||||
|
||||
Reference in New Issue
Block a user