X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsg_socket.cxx;h=4af401de65e98dc356ea2410ad82a02a1b1bda50;hb=f7e9d79322b8ba490390c138153e28468718b0ac;hp=770bb51dcbbbf274e84e996bc3fb12a1e04a6315;hpb=662578dbe79da90ff3f97ac2371b48100358ab61;p=simgear.git diff --git a/simgear/io/sg_socket.cxx b/simgear/io/sg_socket.cxx index 770bb51d..4af401de 100644 --- a/simgear/io/sg_socket.cxx +++ b/simgear/io/sg_socket.cxx @@ -84,7 +84,7 @@ SGSocket::make_server_socket() return false; } - if (sock.bind( "", port ) < 0) + if (sock.bind( hostname.c_str(), port ) < 0) { SG_LOG( SG_IO, SG_ALERT, "Error: bind() failed in make_server_socket()" );