From 97ad6cef43e88dc53a343161a24233a842add386 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 17:20:23 +0000 Subject: [PATCH] chore: polish xhttp browser dialer mode validation messages Agent-Logs-Url: https://github.com/XTLS/Xray-core/sessions/071df77b-69fb-4b1f-a14d-9dab447e1efa Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com> --- infra/conf/transport_internet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go index 6410ec53..e1387de8 100644 --- a/infra/conf/transport_internet.go +++ b/infra/conf/transport_internet.go @@ -1989,10 +1989,10 @@ func (c *StreamConfig) Build() (*internet.StreamConfig, error) { splitHTTPSettingsCopy := *splitHTTPSettings hs, err := splitHTTPSettingsCopy.Build() if err != nil { - return nil, errors.New("Failed to build XHTTP config for browserDialer validation.").Base(err) + return nil, errors.New("failed to build XHTTP config for browserDialer validation.").Base(err) } if splitHTTPConfig, ok := hs.(*splithttp.Config); ok && splitHTTPConfig.Mode != "auto" && splitHTTPConfig.Mode != "packet-up" { - return nil, errors.New("sockopt.browserDialer only supports XHTTP mode auto or packet-up, got: ", splitHTTPConfig.Mode) + return nil, errors.New("sockopt.browserDialer only supports XHTTP modes \"auto\" or \"packet-up\", got: \"", splitHTTPConfig.Mode, "\"") } } }