From 2203dbb34e494444ed21dd7d0cd2dfc91636fb45 Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Wed, 25 Jun 2025 04:42:59 +0800 Subject: [PATCH] Fallback: default `dest` 127.0.0.1 > localhost Fix https://github.com/XTLS/Xray-examples/issues/234 --- infra/conf/vless.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/vless.go b/infra/conf/vless.go index 27da68dc..5d4ace6f 100644 --- a/infra/conf/vless.go +++ b/infra/conf/vless.go @@ -111,7 +111,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) { } } else { if _, err := strconv.Atoi(fb.Dest); err == nil { - fb.Dest = "127.0.0.1:" + fb.Dest + fb.Dest = "localhost:" + fb.Dest } if _, _, err := net.SplitHostPort(fb.Dest); err == nil { fb.Type = "tcp"