remove unneeded check (#2658)

This commit is contained in:
Stavros Kois
2025-07-04 18:47:01 +03:00
committed by GitHub
parent ded049b905
commit 855c48aec2
2 changed files with 3 additions and 1 deletions

View File

@@ -392,7 +392,7 @@ func validateServerConfig() error {
errorText += "Fatal config error: set either tls_letsencrypt_hostname or tls_cert_path/tls_key_path, not both\n"
}
if !viper.IsSet("noise") || viper.GetString("noise.private_key_path") == "" {
if viper.GetString("noise.private_key_path") == "" {
errorText += "Fatal config error: headscale now requires a new `noise.private_key_path` field in the config file for the Tailscale v2 protocol\n"
}