mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Merge pull request #2593 from AudriusButkevicius/httpfoo
Only override TLS settings if scheme is specified
This commit is contained in:
commit
9c82a4ca60
@ -44,7 +44,7 @@ func (c GUIConfiguration) Address() string {
|
||||
}
|
||||
|
||||
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 c.RawUseTLS
|
||||
|
Loading…
Reference in New Issue
Block a user