commit 1468d7c87c495048a32cc9a70040e2e86370100e
parent c806fa4f13ef5c047de8df274bad569e0e8d6580
Author: Sebastian <sebastian@sebsite.pw>
Date: Wed, 11 Jan 2023 23:54:33 -0500
net::dial: remove harec bug workaround
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/dial/resolve.ha b/net/dial/resolve.ha
@@ -155,11 +155,10 @@ fn resolve_addr(addr: str) ([]ip::addr | error) = {
fn collect_answers(addrs: *[]ip::addr, answers: *[]dns::rrecord) void = {
for (let i = 0z; i < len(answers); i += 1) {
match (answers[i].rdata) {
- // XXX: harec bug prevents us from casting directly to ip::addr
case let addr: dns::aaaa =>
- append(addrs, addr: ip::addr6: ip::addr);
+ append(addrs, addr: ip::addr);
case let addr: dns::a =>
- append(addrs, addr: ip::addr4: ip::addr);
+ append(addrs, addr: ip::addr);
case => void;
};
};