File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *simplejson.Json) (*
423
423
var enableTLS bool
424
424
var enableVless bool
425
425
var enableReality bool
426
+ var vlessFlow string
426
427
var alterID uint16 = 0
427
428
428
429
tmpInboundInfo := nodeInfoResponse .Get ("inbounds" ).MustArray ()
@@ -470,6 +471,13 @@ func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *simplejson.Json) (*
470
471
}
471
472
}
472
473
474
+ // XTLS only supports TLS and REALITY directly for now
475
+ if (transportProtocol == "h2" || transportProtocol == "grpc" ) && enableReality {
476
+ vlessFlow = ""
477
+ } else {
478
+ vlessFlow = c .VlessFlow
479
+ }
480
+
473
481
// Create GeneralNodeInfo
474
482
// AlterID will be updated after next sync
475
483
nodeInfo := & api.NodeInfo {
@@ -482,7 +490,7 @@ func (c *APIClient) ParseV2rayNodeResponse(nodeInfoResponse *simplejson.Json) (*
482
490
Path : path ,
483
491
Host : host ,
484
492
EnableVless : enableVless ,
485
- VlessFlow : c . VlessFlow ,
493
+ VlessFlow : vlessFlow ,
486
494
ServiceName : serviceName ,
487
495
Header : header ,
488
496
EnableREALITY : enableReality ,
You can’t perform that action at this time.
0 commit comments