Fixed typo

This commit is contained in:
SChernykh 2021-10-13 14:56:27 +02:00 committed by GitHub
parent 60a8538e0c
commit 61ac90f1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::parse_address_list(const std::str
}
const int port = atoi(address.substr(k2 + 1).c_str());
if ((port > 0) && (port < 655356)) {
if ((port > 0) && (port < 65536)) {
callback(is_v6, address, ip, port);
}
else {