Commit d0da6430 authored by Jonathan Michalon's avatar Jonathan Michalon
Browse files

Fix server to listen on all interfaces, and to all addresses

parent 3e927cde
......@@ -131,10 +131,7 @@ public class Server: ThreadedSocketService
construct
{
try {
var inetaddr = new InetAddress.from_string ("::1");
var inetsockaddr = new InetSocketAddress (inetaddr, (uint16)port);
this.add_address (inetsockaddr, SocketType.STREAM, SocketProtocol.DEFAULT,
null, null);
this.add_inet_port ((uint16) port, null);
} catch (Error e) {
critical ("failed to add address: %s", e.message);
}
......
Markdown is supported
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