Skip to content

Commit

Permalink
Require config server auth token flag (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwh33 authored Sep 21, 2023
1 parent 9dc6d8a commit 08c7942
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ func main() {
}
}()

if *cfgSvrAuthToken == "" {
log.Fatal("Config server auth token is required")
}

if *lampshadeAddr != "" && !*https {
log.Fatal("Use of lampshade requires https flag to be true")
}
Expand Down

0 comments on commit 08c7942

Please sign in to comment.