(s string)
| 965 | } |
| 966 | |
| 967 | func parsePort(s string) (uint16, error) { |
| 968 | port, err := strconv.ParseUint(s, 10, 16) |
| 969 | if err != nil { |
| 970 | return 0, err |
| 971 | } |
| 972 | if port < 1 || port > math.MaxUint16 { |
| 973 | return 0, errors.New("outside range") |
| 974 | } |
| 975 | return uint16(port), nil |
| 976 | } |
| 977 | |
| 978 | func makeDefaultDialer() *net.Dialer { |
| 979 | // rely on GOLANG KeepAlive settings |
no outgoing calls
no test coverage detected