mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 10:26:40 +00:00
feat(env): support BIND environment variable
This commit is contained in:
7
main.go
7
main.go
@@ -118,6 +118,13 @@ func startServer() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *bindFlag == defaultBind {
|
||||||
|
envBind := os.Getenv("BIND")
|
||||||
|
if envBind != "" {
|
||||||
|
*bindFlag = envBind
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if !*forceHTTPSFlag && os.Getenv("FORCE_HTTPS") != "" {
|
if !*forceHTTPSFlag && os.Getenv("FORCE_HTTPS") != "" {
|
||||||
*forceHTTPSFlag = true
|
*forceHTTPSFlag = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user