string hosts in net.*

This commit is contained in:
2026-06-07 09:33:26 +02:00
parent a727a52ffb
commit a9bd4fe9f9
8 changed files with 109 additions and 71 deletions

View File

@@ -26,11 +26,7 @@ func main[argc: i64, argv: ptr] : i64
if i < url_len
path = url->substr(i, url_len - i)
~addr, ok := net.resolve(host)
if !ok
panic("failed to resolve host")
~s, ok := net.connect(addr, 80)
~s, ok := net.connect(host, 80)
if !ok
panic("failed to connect")