Skip to content

Commit

Permalink
only listen on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
jweather committed Nov 24, 2014
1 parent af8276e commit a2bff5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gui/qt/udp.hh
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private:
int err = 0;


err = getaddrinfo(binding ? 0 : hostname.c_str(), port.empty() ? 0 : port.c_str(), &hints, &result);
err = getaddrinfo(binding ? "127.0.0.1" : hostname.c_str(), port.empty() ? 0 : port.c_str(), &hints, &result);
if (err != 0) {
setErr(gai_strerror(err));
return false;
Expand Down

0 comments on commit a2bff5e

Please sign in to comment.