move syscall constants for networking into net space to avoid windows build issue

This commit is contained in:
Scott Feldman
2023-05-02 16:39:11 -07:00
committed by deadprogram
parent d939a800a7
commit 2d46776c18
4 changed files with 17 additions and 10 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import (
"internal/itoa"
"io"
"strconv"
"syscall"
"time"
)
@@ -58,7 +57,7 @@ func DialTLS(addr string) (*TLSConn, error) {
port = 443
}
fd, err := netdev.Socket(syscall.AF_INET, syscall.SOCK_STREAM, IPPROTO_TLS)
fd, err := netdev.Socket(AF_INET, SOCK_STREAM, IPPROTO_TLS)
if err != nil {
return nil, err
}