- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isHostIP (0.07 sec)
-
cmd/net.go
for _, ip := range ipList { apiEndpoints = append(apiEndpoints, getURLScheme(globalIsTLS)+"://"+net.JoinHostPort(ip, globalMinioPort)) } 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.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jun 19 14:34:00 UTC 2024 - 9.6K bytes - Viewed (1) -
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) } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.2K 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)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 34.4K bytes - Viewed (0)