1 Commits

Author SHA1 Message Date
putyy
ee6698a8e8 fix: upstream proxy settings 2025-05-20 17:17:08 +08:00
2 changed files with 2 additions and 1 deletions

BIN
build/.DS_Store vendored

Binary file not shown.

View File

@@ -151,6 +151,7 @@ func initConfig() *Config {
func (c *Config) setConfig(config Config) {
oldProxy := c.UpstreamProxy
openProxy := c.OpenProxy
c.Host = config.Host
c.Port = config.Port
c.Theme = config.Theme
@@ -167,7 +168,7 @@ func (c *Config) setConfig(config Config) {
c.TaskNumber = config.TaskNumber
c.WxAction = config.WxAction
c.UseHeaders = config.UseHeaders
if oldProxy != c.UpstreamProxy {
if oldProxy != c.UpstreamProxy || openProxy != c.OpenProxy {
proxyOnce.setTransport()
}