mirror of https://github.com/k3s-io/k3s
Fix comment of isHTTPSURL
parent
7bc1c67685
commit
8ea31945be
|
@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm
|
|||
}
|
||||
}
|
||||
|
||||
// isHTTPSURL checks whether the string is parsable as an URL
|
||||
// isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https
|
||||
func isHTTPSURL(s string) bool {
|
||||
u, err := url.Parse(s)
|
||||
return err == nil && u.Scheme == "https"
|
||||
|
|
Loading…
Reference in New Issue