From 0fce6588da2469e9a62e3f016207bb63bbea6ded Mon Sep 17 00:00:00 2001 From: Yuzuki616 Date: Sun, 20 Aug 2023 15:22:01 +0800 Subject: [PATCH] fix servername --- core/sing/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sing/node.go b/core/sing/node.go index b25f8ff..a6d7cc4 100644 --- a/core/sing/node.go +++ b/core/sing/node.go @@ -57,7 +57,7 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio case panel.Reality: tls.Enabled = true v := info.VAllss - tls.ServerName = v.TlsSettings.PrivateKey + tls.ServerName = v.TlsSettings.ServerName[0] if len(v.TlsSettings.ShortIds) == 0 { v.TlsSettings.ShortIds = []string{""} }