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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@
[#2614](https://github.com/juanfont/headscale/pull/2614) [#2614](https://github.com/juanfont/headscale/pull/2614)
- Support client verify for DERP - Support client verify for DERP
[#2046](https://github.com/juanfont/headscale/pull/2046) [#2046](https://github.com/juanfont/headscale/pull/2046)
- Remove redundant check regarding `noise` config
[#2658](https://github.com/juanfont/headscale/pull/2658)
- Refactor OpenID Connect documentation - Refactor OpenID Connect documentation
[#2625](https://github.com/juanfont/headscale/pull/2625) [#2625](https://github.com/juanfont/headscale/pull/2625)
- Don't crash if config file is missing - Don't crash if config file is missing

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" 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" errorText += "Fatal config error: headscale now requires a new `noise.private_key_path` field in the config file for the Tailscale v2 protocol\n"
} }