Browse Source

cmd/derper: remove default for non-root users

Signed-off-by: julianknodt <[email protected]>
julianknodt 4 years ago
parent
commit
b67a3007d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/derper/derper.go

+ 1 - 1
cmd/derper/derper.go

@@ -61,7 +61,7 @@ func loadConfig() config {
 		if os.Getuid() == 0 {
 			*configPath = "/var/lib/derper/derper.key"
 		} else {
-			*configPath = "derper.key"
+			log.Fatalf("derper: -c <config path> not specified")
 		}
 		log.Printf("no config path specified; using %s", *configPath)
 	}