diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2017-03-01 16:03:10 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-01 15:03:10 +0100 |
commit | 28a7c874b7cdba34544abb7691515d36fe8411c8 (patch) | |
tree | d61e4735ebf4e34ba8d9730ba82fbad92555e492 /lib | |
parent | 3be87669fa583578af10bc16b352c677f22d294d (diff) | |
download | Nim-28a7c874b7cdba34544abb7691515d36fe8411c8.tar.gz |
Revert "Listen on ipv6" (#5461)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asynchttpserver.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim index 672eb34a0..a558d9d7e 100644 --- a/lib/pure/asynchttpserver.nim +++ b/lib/pure/asynchttpserver.nim @@ -31,7 +31,7 @@ ## ## waitFor server.serve(Port(8080), cb) -import tables, asyncnet, asyncdispatch, parseutils, uri, strutils, nativesockets +import tables, asyncnet, asyncdispatch, parseutils, uri, strutils import httpcore export httpcore except parseHeader @@ -241,7 +241,7 @@ proc serve*(server: AsyncHttpServer, port: Port, ## specified address and port. ## ## When a request is made by a client the specified callback will be called. - server.socket = newAsyncSocket(AF_INET6) + server.socket = newAsyncSocket() if server.reuseAddr: server.socket.setSockOpt(OptReuseAddr, true) if server.reusePort: |