fix: split browser dialer configure and listener startup phases

Agent-Logs-Url: https://github.com/XTLS/Xray-core/sessions/bd037532-6fba-48d4-bf72-77fbb3bf8fc4

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-27 11:50:15 +00:00
committed by GitHub
parent 286a702bfa
commit c423317305
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -632,6 +632,9 @@ func (c *Config) Build() (*core.Config, error) {
if err := browser_dialer.ConfigureCollectedDialerProxyURLs(); err != nil {
return nil, errors.New("failed to configure browser dialer").Base(err)
}
if err := browser_dialer.StartCollectedDialerProxyURLs(); err != nil {
return nil, errors.New("failed to start browser dialer listeners").Base(err)
}
return config, nil
}