mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix(xtls): panic #1039
This commit is contained in:
1 parent
51375d3639
commit
2bc91c02e7
1 file changed
+4
-2
@@ -384,8 +384,10 @@ func (v *V2Ray) Configuration(info PriorInfo) (c Configuration, err error) {
|
||||
core.StreamSettings.Security = "xtls"
|
||||
core.StreamSettings.XTLSSettings = &coreObj.TLSSettings{}
|
||||
// SNI
|
||||
if v.Host != "" {
|
||||
core.StreamSettings.TLSSettings.ServerName = v.Host
|
||||
if v.SNI != "" {
|
||||
core.StreamSettings.XTLSSettings.ServerName = v.SNI
|
||||
} else if v.Host != "" {
|
||||
core.StreamSettings.XTLSSettings.ServerName = v.Host
|
||||
}
|
||||
if v.AllowInsecure {
|
||||
core.StreamSettings.XTLSSettings.AllowInsecure = true
|
||||
|
||||
Reference in new issue
Block a user