fix(clustertool): ensure github known hosts are always pointing towards github

This commit is contained in:
Kjeld Schouten
2024-11-08 21:25:13 +01:00
parent a2df1931eb
commit d41c3a8c05
+1 -1
View File
@@ -176,7 +176,7 @@ func publicKeyToOpenSSH(pub *ecdsa.PublicKey) (string, error) {
// getKnownHostsEntry generates the known_hosts entry for the given URL
func getKnownHostsEntry(url string) string {
if url == "github.com" {
if strings.Contains(url, "github.com") {
return getGithubKnownHostsEntry()
}
return generateKnownHostsEntry(url)