fix(amp): update log message wording for disabled proxy state

This commit is contained in:
hkfires
2025-12-04 21:36:16 +08:00
parent 4a135f1986
commit 9426be7a5c

View File

@@ -214,7 +214,7 @@ func (m *AmpModule) OnConfigUpdated(cfg *config.Config) error {
} }
if newUpstreamURL == "" && oldUpstreamURL != "" { if newUpstreamURL == "" && oldUpstreamURL != "" {
log.Warn("amp upstream URL removed from config, proxy disabled until restart") log.Warn("amp upstream URL removed from config, proxy has been disabled")
m.setProxy(nil) m.setProxy(nil)
changes = append(changes, "upstream-url(disabled)") changes = append(changes, "upstream-url(disabled)")
} else if newUpstreamURL != oldUpstreamURL && newUpstreamURL != "" { } else if newUpstreamURL != oldUpstreamURL && newUpstreamURL != "" {