shithub: mc

Download patch

ref: 0d3f5d4bd7b74a810db4424aafdaf398faa9c69a
parent: b496f04461449a2ef304e6b212322eed0b7230b3
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Oct 27 06:00:55 EDT 2020

readability: '.port=port' isn't helpful, it's just 53

--- a/lib/std/resolve+posixy.myr
+++ b/lib/std/resolve+posixy.myr
@@ -285,11 +285,11 @@
 
 	match ns
 	| `Ipv4 bits:
-		sa4=[.fam=sys.Afinet, .addr=bits, .port=hosttonet(port)]
+		sa4=[.fam=sys.Afinet, .addr=bits, .port=hosttonet(53)]
 		sa = (&sa4 : sys.sockaddr#)
 		sz = sizeof(sys.sockaddr_in)
 	| `Ipv6 bits:
-		sa6=[.fam=sys.Afinet6, .addr=bits, .port=hosttonet(port)]
+		sa6=[.fam=sys.Afinet6, .addr=bits, .port=hosttonet(53)]
 		sa = (&sa6 : sys.sockaddr#)
 		sz = sizeof(sys.sockaddr_in6)
 	;;