Skip to content

Commit 532e0bc

Browse files
committed
Bind to 0.0.0.0 if no address specified (:80)
1 parent c175c49 commit 532e0bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

netdev_wasip2.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ func tinygoToWasiAddr(ip netip.AddrPort) network.IPSocketAddress {
3737
})
3838
}
3939

40-
return network.IPSocketAddress{}
40+
return network.IPSocketAddressIPv4(network.IPv4SocketAddress{
41+
Port: ip.Port(),
42+
})
4143
}
4244

4345
func wasiAddrToTinygo(addr network.IPSocketAddress) netip.AddrPort {

0 commit comments

Comments
 (0)