We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c340d commit 533df13Copy full SHA for 533df13
1 file changed
cmd/server/main.go
@@ -69,9 +69,8 @@ func main() {
69
log.Printf("Security Warning: ACCESS_TOKEN has not been set!\n")
70
}
71
addr := "localhost:8080"
72
- if port := os.Getenv("PORT"); port != "" {
73
- addr = ":" + port
74
- log.Printf("Security Warning: Non-local network!\n")
+ if addrEnv := os.Getenv("ADDR"); addrEnv != "" {
+ addr = addrEnv
75
76
77
interceptors := connect.WithInterceptors(interceptor.NewAuthInterceptor())
0 commit comments