This commit is contained in:
parent
985ef449c5
commit
929127e861
1 changed files with 17 additions and 4 deletions
21
main.go
21
main.go
|
@ -363,10 +363,23 @@ func main() {
|
||||||
defaultTLSCert := "/data/cert.pem"
|
defaultTLSCert := "/data/cert.pem"
|
||||||
defaultTLSKey := "/data/key.key"
|
defaultTLSKey := "/data/key.key"
|
||||||
|
|
||||||
https := os.Getenv("HTTPS") == "1"
|
var https bool
|
||||||
h3c := os.Getenv("H3C") == "1"
|
var h3c bool
|
||||||
h3s := os.Getenv("H3S") == "1"
|
var h3s bool
|
||||||
ipv6 := os.Getenv("IPV6_ONLY") == "1"
|
var ipv6 bool
|
||||||
|
|
||||||
|
if strings.ToLower(os.Getenv("HTTPS")) == "true" {
|
||||||
|
https = true
|
||||||
|
}
|
||||||
|
if strings.ToLower(os.Getenv("H3C")) == "true" {
|
||||||
|
h3c = true
|
||||||
|
}
|
||||||
|
if strings.ToLower(os.Getenv("H3S")) == "true" {
|
||||||
|
h3s = true
|
||||||
|
}
|
||||||
|
if strings.ToLower(os.Getenv("IPV6_ONLY")) == "true" {
|
||||||
|
ipv6 = true
|
||||||
|
}
|
||||||
|
|
||||||
tls_cert := os.Getenv("TLS_CERT")
|
tls_cert := os.Getenv("TLS_CERT")
|
||||||
if tls_cert == "" {
|
if tls_cert == "" {
|
||||||
|
|
Loading…
Reference in a new issue