Only override TLS settings if scheme is specified
This commit is contained in:
parent
2cdfa59fbe
commit
33a87f54bb
@ -44,7 +44,7 @@ func (c GUIConfiguration) Address() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c GUIConfiguration) UseTLS() bool {
|
func (c GUIConfiguration) UseTLS() bool {
|
||||||
if override := os.Getenv("STGUIADDRESS"); override != "" {
|
if override := os.Getenv("STGUIADDRESS"); override != "" && strings.HasPrefix(override, "http") {
|
||||||
return strings.HasPrefix(override, "https:")
|
return strings.HasPrefix(override, "https:")
|
||||||
}
|
}
|
||||||
return c.RawUseTLS
|
return c.RawUseTLS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user