fix(clustertool): ensure github known hosts are always pointing towards github
This commit is contained in:
@@ -176,7 +176,7 @@ func publicKeyToOpenSSH(pub *ecdsa.PublicKey) (string, error) {
|
|||||||
|
|
||||||
// getKnownHostsEntry generates the known_hosts entry for the given URL
|
// getKnownHostsEntry generates the known_hosts entry for the given URL
|
||||||
func getKnownHostsEntry(url string) string {
|
func getKnownHostsEntry(url string) string {
|
||||||
if url == "github.com" {
|
if strings.Contains(url, "github.com") {
|
||||||
return getGithubKnownHostsEntry()
|
return getGithubKnownHostsEntry()
|
||||||
}
|
}
|
||||||
return generateKnownHostsEntry(url)
|
return generateKnownHostsEntry(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user