commit ab262e8afc9a8519cfcc0fe87a3f8951d070f26e
parent 435b45c377229d95100b58392cdbb1930f64db81
Author: Eyal Sawady <ecs@d2evs.net>
Date: Thu, 13 Jan 2022 13:21:18 +0000
net::dial::resolve_addr: drop harec workaround
Signed-off-by: Eyal Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/net/dial/resolve.ha b/net/dial/resolve.ha
@@ -61,10 +61,7 @@ export fn resolve(
fn resolve_addr(addr: str) ([]ip::addr | error) = {
match (ip::parse(addr)) {
case let addr: ip::addr =>
- // XXX: harec bug prevents just alloc'ing this
- let addrs: []ip::addr = [];
- append(addrs, addr);
- return addrs;
+ return alloc([addr]);
case ip::invalid => void;
};