From 9e05e3830fc6f987eef1828a50982f9150832abd Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Wed, 30 Aug 2023 16:08:27 +0800 Subject: [PATCH] fix reality dest for xray --- core/xray/inbound.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/xray/inbound.go b/core/xray/inbound.go index 6135e14..34cae89 100644 --- a/core/xray/inbound.go +++ b/core/xray/inbound.go @@ -105,7 +105,10 @@ func buildInbound(option *conf.Options, nodeInfo *panel.NodeInfo, tag string) (* // Reality in.StreamSetting.Security = "reality" v := nodeInfo.VAllss - d, err := json.Marshal(v.TlsSettings.ServerName) + d, err := json.Marshal(fmt.Sprintf( + "%s:%s", + v.TlsSettings.ServerName, + v.TlsSettings.ServerPort)) if err != nil { return nil, fmt.Errorf("marshal reality dest error: %s", err) }