shithub: mc

Download patch

ref: 6ea9b06b98aadfb089b71775deb5be03fec26e72
parent: f6d4fa4780350777e7446258997ffd7b9217a84a
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jan 19 20:17:56 EST 2016

Un hard-code the socket family.

	This was done for debugging. Let's undo it.

--- a/lib/std/dial+posixy.myr
+++ b/lib/std/dial+posixy.myr
@@ -59,7 +59,7 @@
 		sa = &sa6 castto(sys.sockaddr#)
 		sz = sizeof(sys.sockaddr_in6)
 	;;
-	sock = sys.socket(2, proto, 0)
+	sock = sys.socket(sa.fam, proto, 0)
 
 	if sock < 0
 		-> `Fail "failed to connect to socket"