From 855c48aec287f0c654ed21ff740352933e3b8a1b Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 4 Jul 2025 18:47:01 +0300 Subject: [PATCH] remove unneeded check (#2658) --- CHANGELOG.md | 2 ++ hscontrol/types/config.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aea84949..a829c9e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ [#2614](https://github.com/juanfont/headscale/pull/2614) - Support client verify for DERP [#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 [#2625](https://github.com/juanfont/headscale/pull/2625) - Don't crash if config file is missing diff --git a/hscontrol/types/config.go b/hscontrol/types/config.go index baf8f264..03c1e7ea 100644 --- a/hscontrol/types/config.go +++ b/hscontrol/types/config.go @@ -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" }