mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
fixed hard coded dns key
This commit is contained in:
@@ -187,7 +187,7 @@ func authenticateDNSToken(tokenString string) bool {
|
||||
if len(tokens) < 2 {
|
||||
return false
|
||||
}
|
||||
return tokens[1] == servercfg.GetDNSKey()
|
||||
return len(servercfg.GetDNSKey()) > 0 && tokens[1] == servercfg.GetDNSKey()
|
||||
}
|
||||
|
||||
func ContinueIfUserMatch(next http.Handler) http.HandlerFunc {
|
||||
|
Reference in New Issue
Block a user