mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-20 12:28:59 +00:00
move IPPROTO_TLS to netdev to avoid src/syscall dependency
This commit is contained in:
committed by
deadprogram
parent
693edae782
commit
331151cafe
+1
-1
@@ -31,7 +31,7 @@ func DialTLS(addr string) (*TLSConn, error) {
|
||||
port = 443
|
||||
}
|
||||
|
||||
fd, err := netdev.Socket(syscall.AF_INET, syscall.SOCK_STREAM, syscall.IPPROTO_TLS)
|
||||
fd, err := netdev.Socket(syscall.AF_INET, syscall.SOCK_STREAM, IPPROTO_TLS)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user