summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-10-27 10:00:55 -0700
committerOri Bernstein <ori@eigenstate.org>2020-10-27 10:00:55 -0700
commit0d3f5d4bd7b74a810db4424aafdaf398faa9c69a (patch)
tree48d7508009754d07c724db7b33498e90511fafd8
parentb496f04461449a2ef304e6b212322eed0b7230b3 (diff)
downloadmc-0d3f5d4bd7b74a810db4424aafdaf398faa9c69a.tar.gz
readability: '.port=port' isn't helpful, it's just 53
-rw-r--r--lib/std/resolve+posixy.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/resolve+posixy.myr b/lib/std/resolve+posixy.myr
index f6ac778..b1238a6 100644
--- a/lib/std/resolve+posixy.myr
+++ b/lib/std/resolve+posixy.myr
@@ -285,11 +285,11 @@ const dnsconnect = {ns
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)
;;