diff options
Diffstat (limited to 'modules/setting/proxy.go')
-rw-r--r-- | modules/setting/proxy.go | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/modules/setting/proxy.go b/modules/setting/proxy.go index b99237a398..53fb0066d9 100644 --- a/modules/setting/proxy.go +++ b/modules/setting/proxy.go @@ -10,19 +10,17 @@ import ( "code.gitea.io/gitea/modules/log" ) -var ( - // Proxy settings - Proxy = struct { - Enabled bool - ProxyURL string - ProxyURLFixed *url.URL - ProxyHosts []string - }{ - Enabled: false, - ProxyURL: "", - ProxyHosts: []string{}, - } -) +// Proxy settings +var Proxy = struct { + Enabled bool + ProxyURL string + ProxyURLFixed *url.URL + ProxyHosts []string +}{ + Enabled: false, + ProxyURL: "", + ProxyHosts: []string{}, +} func newProxyService() { sec := Cfg.Section("proxy") |