summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2015-06-23 23:03:35 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2015-06-23 23:03:35 +0200
commitc42b08988c8ff9b64af94329d61dc97efe261265 (patch)
tree5bf3c620c1a300f2feb6aa1a408065bd0995c653
parent93e2d9f9794c637352a167eba2364e2ee7154954 (diff)
downloadNim-c42b08988c8ff9b64af94329d61dc97efe261265.tar.gz
Make newAsyncSocket AF_INET6 the default domain.
-rw-r--r--lib/pure/asyncnet.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim
index 2921de681..d7ac60147 100644
--- a/lib/pure/asyncnet.nim
+++ b/lib/pure/asyncnet.nim
@@ -100,7 +100,7 @@ proc newAsyncSocket*(fd: AsyncFD, buffered = true): AsyncSocket =
   if buffered:
     result.currPos = 0
 
-proc newAsyncSocket*(domain: Domain = AF_INET, typ: SockType = SOCK_STREAM,
+proc newAsyncSocket*(domain: Domain = AF_INET6, typ: SockType = SOCK_STREAM,
     protocol: Protocol = IPPROTO_TCP, buffered = true): AsyncSocket =
   ## Creates a new asynchronous socket.
   ##