File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public static function getV2RayNURI(array $item)
5656 $ return = null ;
5757 switch ($ item ['type ' ]) {
5858 case 'vmess ' :
59- if ((string )$ item ['vtype ' ] == "vmess:// " ) {
59+ if (isset ( $ item [ ' vtype ' ]) && (string )$ item ['vtype ' ] == "vmess:// " ) {
6060 $ node = [
6161 'v ' => "2 " ,
6262 'ps ' => $ item ['remark ' ],
Original file line number Diff line number Diff line change @@ -560,10 +560,9 @@ public static function v2Array($node)
560560 }else {
561561 $ item ['enable_xtls ' ] = "" ;
562562 }
563+ $ item ['vtype ' ] = 'vmess:// ' ;
563564 if (array_key_exists ('enable_vless ' , $ item )) {
564565 $ item ['vtype ' ] = 'vless:// ' ;
565- } else {
566- $ item ['vtype ' ] = 'vmess:// ' ;
567566 }
568567 if (!array_key_exists ('sni ' , $ item )) {
569568 $ item ['sni ' ] = $ item ['host ' ];
You can’t perform that action at this time.
0 commit comments