mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
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 {
|
||||
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