cmd/derper: support no mesh key (#14931)

Incorrect disabled support for not having a mesh key in
d5316a4fbb4a1105ce2ba6f92d9688452b7747cd

Allow for no mesh key to be set.

Fixes #14928

Signed-off-by: Mike O'Driscoll <mikeo@tailscale.com>
This commit is contained in:
Mike O'Driscoll 2025-02-06 10:53:08 -05:00 committed by GitHub
parent 9a9ce12a3e
commit d08f830d50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,6 +236,8 @@ func main() {
if meshKey == "" && *dev {
log.Printf("No mesh key configured for --dev mode")
} else if meshKey == "" {
log.Printf("No mesh key configured")
} else if key, err := checkMeshKey(meshKey); err != nil {
log.Fatalf("invalid mesh key: %v", err)
} else {