fix servername

This commit is contained in:
Yuzuki616 2023-08-20 15:22:01 +08:00
parent 214324496d
commit 0fce6588da

View File

@ -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{""}
}