Update server.d

Fix #31
This commit is contained in:
Hackerpilot 2013-09-02 22:55:05 -07:00
parent 87acacf484
commit 1b943fcab2
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ int main(string[] args)
auto socket = new TcpSocket(AddressFamily.INET);
socket.blocking = true;
socket.setOption(SocketOptionLevel.SOCKET, SocketOption.REUSEADDR, true);
socket.bind(new InternetAddress("127.0.0.1", port));
socket.bind(new InternetAddress("localhost", port));
socket.listen(0);
scope (exit)
{