commit 84664ea8962ff2c71b274728c3ef8014c0af10d0
parent 45231d7cf5986efd9397ed211c80887f9a690a1e
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 9 Feb 2023 23:30:24 +0100
net::uri::dup: fix issue with IPs
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/uri/uri.ha b/net/uri/uri.ha
@@ -23,7 +23,7 @@ export fn dup(u: *uri) uri = {
case let host: str =>
yield strings::dup(host);
case let ip: ip::addr =>
- yield strings::dup(ip::string(ip));
+ yield ip;
},
port = u.port,
userinfo = strings::dup(u.userinfo),