- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isHostIP (0.18 sec)
-
cmd/net.go
apiEndpoints = append(apiEndpoints, endpoint) } return apiEndpoints } // isHostIP - helper for validating if the provided arg is an ip address. func isHostIP(ipAddress string) bool { host, _, err := net.SplitHostPort(ipAddress) if err != nil { host = ipAddress } // Strip off IPv6 zone information.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0) -
cmd/net_test.go
{"http://192.168.1.0", false}, {"http://192.168.1.0:9000", false}, {"192.168.1.0", true}, {"[2001:3984:3989::20%eth0]:9000", true}, } for _, testCase := range testCases { ret := isHostIP(testCase.args) if testCase.expectedResult != ret { t.Fatalf("expected: %v , got: %v", testCase.expectedResult, ret) } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 08:43:09 GMT 2024 - 9.3K bytes - Viewed (0) -
cmd/endpoint.go
// localhost, example.com, any FQDN cannot be disambiguated from a regular file path such as // /mnt/export1. So we go ahead and start the minio server in FS modes in these cases. if isHostIP(arg) { return ep, fmt.Errorf("invalid URL endpoint format: missing scheme http or https") } absArg, err := filepath.Abs(arg) if err != nil { return Endpoint{}, fmt.Errorf("absolute path failed %s", err)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 21 11:43:18 GMT 2024 - 34.1K bytes - Viewed (0)