shithub: mc

Download patch

ref: 620e64162eb58974757a4da00e070b90db41ef0c
parent: 4073bdf9c99a87f68e2f682a5c8925fc96afa4b0
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 21 19:17:01 EDT 2015

Add ipv6 support to dial.

    Currently untested.

--- a/libstd/dial+posixy.myr
+++ b/libstd/dial+posixy.myr
@@ -31,8 +31,8 @@
 /* takes a plan 9 style dial string */
 const dial = {str
 	var proto, host, port
-	var sa4 : sys.sockaddr_in	/* we only support inet sockets right now.. ugh. */
-	var sa6 : sys.sockaddr_in6	/* we only support inet sockets right now.. ugh. */
+	var sa4 : sys.sockaddr_in
+	var sa6 : sys.sockaddr_in6
 	var sa	: sys.sockaddr#
 	var sock