Commit 0b5a31db authored by Noah Orensa's avatar Noah Orensa
Browse files

fix socket's own reported address as loopback for server sockets

parent c32a1364
......@@ -150,6 +150,9 @@ Socket::Socket(uint16_t port, int maxWaitingQueueLength) {
std::string("Error getting socket address. ") + strerror(errno)
);
}
port = get_port(_addr);
_addr = self_address_ipv4(port);
}
void Socket::send(void *data, size_t len) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment