mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-17 03:03:24 +00:00
Unexport net constants copied over from syscall
This commit is contained in:
committed by
deadprogram
parent
2d46776c18
commit
6bb697535a
+1
-1
@@ -168,7 +168,7 @@ func DialUDP(network string, laddr, raddr *UDPAddr) (*UDPConn, error) {
|
||||
laddr.Port = ephemeralPort()
|
||||
}
|
||||
|
||||
fd, err := netdev.Socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
|
||||
fd, err := netdev.Socket(_AF_INET, _SOCK_DGRAM, _IPPROTO_UDP)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user