fix: upstream proxy settings

This commit is contained in:
putyy
2025-05-20 17:16:05 +08:00
parent dc46668f0d
commit 7f2b99b51f
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()
}