mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-04 23:35:50 +00:00
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:
parent
9a9ce12a3e
commit
d08f830d50
@ -236,6 +236,8 @@ func main() {
|
|||||||
|
|
||||||
if meshKey == "" && *dev {
|
if meshKey == "" && *dev {
|
||||||
log.Printf("No mesh key configured for --dev mode")
|
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 {
|
} else if key, err := checkMeshKey(meshKey); err != nil {
|
||||||
log.Fatalf("invalid mesh key: %v", err)
|
log.Fatalf("invalid mesh key: %v", err)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user