mirror of
https://github.com/putyy/res-downloader.git
synced 2026-01-12 06:04:55 +08:00
fix: upstream proxy settings
This commit is contained in:
BIN
build/.DS_Store
vendored
BIN
build/.DS_Store
vendored
Binary file not shown.
@@ -151,6 +151,7 @@ func initConfig() *Config {
|
|||||||
|
|
||||||
func (c *Config) setConfig(config Config) {
|
func (c *Config) setConfig(config Config) {
|
||||||
oldProxy := c.UpstreamProxy
|
oldProxy := c.UpstreamProxy
|
||||||
|
openProxy := c.OpenProxy
|
||||||
c.Host = config.Host
|
c.Host = config.Host
|
||||||
c.Port = config.Port
|
c.Port = config.Port
|
||||||
c.Theme = config.Theme
|
c.Theme = config.Theme
|
||||||
@@ -167,7 +168,7 @@ func (c *Config) setConfig(config Config) {
|
|||||||
c.TaskNumber = config.TaskNumber
|
c.TaskNumber = config.TaskNumber
|
||||||
c.WxAction = config.WxAction
|
c.WxAction = config.WxAction
|
||||||
c.UseHeaders = config.UseHeaders
|
c.UseHeaders = config.UseHeaders
|
||||||
if oldProxy != c.UpstreamProxy {
|
if oldProxy != c.UpstreamProxy || openProxy != c.OpenProxy {
|
||||||
proxyOnce.setTransport()
|
proxyOnce.setTransport()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user