diff --git a/net/socket.h b/net/socket.h index 6ff69d99..5f6956b0 100644 --- a/net/socket.h +++ b/net/socket.h @@ -53,7 +53,7 @@ namespace net // For compatibility, the default constructor is still 0.0.0.0 (IPv4) IPAddr() { - map_v4(INADDR_ANY); + map_v4(htonl(INADDR_ANY)); } // V6 constructor (Internet Address)