mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-31 18:54:11 +09:00
refining
This commit is contained in:
1 parent
9e619fc020
commit
5935b13b67
3 files changed
+33
-9
No files matched your search
@@ -83,8 +83,8 @@ func LoadConfig(path string) error {
|
||||
}
|
||||
|
||||
auth_mode := viper.GetString("tls_client_auth_mode")
|
||||
if (auth_mode != "disabled" && auth_mode != "enforced"){
|
||||
errorText += "Invalid tls_client_auth_mode supplied. Accepted values: disabled, enforced."
|
||||
if (auth_mode != "disabled" && auth_mode != "relaxed" && auth_mode != "enforced"){
|
||||
errorText += "Invalid tls_client_auth_mode supplied. Accepted values: disabled, relaxed, enforced."
|
||||
}
|
||||
|
||||
if errorText != "" {
|
||||
|
||||
Reference in new issue
Block a user