github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/gmtls/handshake_unix_test.go (about) 1 // Copyright 2022 s1ren@github.com/hxx258456. 2 3 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 4 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 5 6 /* 7 gmtls是基于`golang/go`的`tls`包实现的国密改造版本。 8 对应版权声明: thrid_licenses/github.com/golang/go/LICENSE 9 */ 10 11 package gmtls 12 13 import ( 14 "errors" 15 "syscall" 16 ) 17 18 func init() { 19 isConnRefused = func(err error) bool { 20 return errors.Is(err, syscall.ECONNREFUSED) 21 } 22 }