Skip to content

Commit 2ee0941

Browse files
committed
Merge remote-tracking branch 'origin/master' into master
2 parents ae6f017 + a9d34aa commit 2ee0941

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Utils/AppURI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'],

src/Utils/Tools.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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'];

0 commit comments

Comments
 (0)