@@ -85,7 +85,7 @@ function getFileUrl($fileid){
8585 $ filePath = bot ('getFile ' ,[
8686 'file_id ' =>$ fileid
8787 ])->result ->file_path ;
88- return "https://api.telegram.org/file/bot " . $ botToken . "/ " . $ filepath ;
88+ return "https://api.telegram.org/file/bot " . $ botToken . "/ " . $ filePath ;
8989}
9090function alert ($ txt , $ type = false , $ callid = null ){
9191 global $ callbackId ;
@@ -1972,13 +1972,13 @@ function addInboundAccount($server_id, $client_id, $inbound_id, $expiryTime, $re
19721972 $ file_detail = $ stmt ->get_result ()->fetch_assoc ();
19731973 $ stmt ->close ();
19741974
1975- $ flow = $ file_detail ['flow ' ] == "None " ? "" : $ file_detail ['flow ' ];
1975+ $ flow = isset ( $ file_detail ['flow ' ]) && $ file_detail [ ' flow ' ] != "None " ? $ file_detail ['flow ' ] : "" ;
19761976
19771977 $ newClient = [
19781978 "$ id_label " => $ client_id ,
19791979 "email " => $ remark ,
19801980 "limitIp " => $ limitip ,
1981- "flow " => " ' . $ flow .' " ,
1981+ "flow " => $ flow ,
19821982 "totalGB " => $ volume ,
19831983 "expiryTime " => $ expiryTime
19841984 ];
@@ -1994,7 +1994,7 @@ function addInboundAccount($server_id, $client_id, $inbound_id, $expiryTime, $re
19941994 }else {
19951995 $ newClient = [
19961996 "$ id_label " => $ client_id ,
1997- "flow " => "xtls-rprx-direct " ,
1997+ "flow " => "" ,
19981998 "email " => $ remark ,
19991999 "limitIp " => $ limitip ,
20002000 "totalGB " => $ volume ,
@@ -2411,7 +2411,7 @@ function getConnectionLink($server_id, $uniqid, $protocol, $remark, $port, $netT
24112411 if ($ header_type == 'http ' ) $ psting .= "&path=/&host= $ host " ;
24122412 if ($ netType == 'tcp ' and $ header_type == 'http ' ) $ psting .= '&headerType=http ' ;
24132413 if (strlen ($ sni ) > 1 ) $ psting .= "&sni= $ sni " ;
2414- if ($ tlsStatus != 'none ' ) $ psting .= "&security=tls&flow=xtls-rprx-direct " ;
2414+ if ($ tlsStatus != 'none ' ) $ psting .= "&security=tls&flow= " ;
24152415 if ($ netType == 'grpc ' ) $ psting = "&serviceName= $ serviceName " ;
24162416
24172417 $ outputlink = "$ protocol:// $ uniqid@ $ server_ip: $ port {$ psting }# $ remark " ;
@@ -2522,7 +2522,7 @@ function editInbound($server_id, $uniqid, $remark, $protocol, $netType = 'tcp',
25222522 "clients": [
25232523 {
25242524 "id": " ' .$ uniqid .'",
2525- "flow": "xtls-rprx-direct "
2525+ "flow": ""
25262526 }
25272527 ],
25282528 "decryption": "none",
@@ -2587,7 +2587,7 @@ function editInbound($server_id, $uniqid, $remark, $protocol, $netType = 'tcp',
25872587 "clients": [
25882588 {
25892589 "password": " ' .$ uniqid .'",
2590- "flow": "xtls-rprx-direct "
2590+ "flow": ""
25912591 }
25922592 ],
25932593 "fallbacks": []
@@ -2628,7 +2628,7 @@ function editInbound($server_id, $uniqid, $remark, $protocol, $netType = 'tcp',
26282628 "clients": [
26292629 {
26302630 "id": " ' .$ client_id .'",
2631- "flow": "xtls-rprx-direct "
2631+ "flow": ""
26322632 }
26332633 ],
26342634 "decryption": "none",
@@ -2720,7 +2720,7 @@ function editInbound($server_id, $uniqid, $remark, $protocol, $netType = 'tcp',
27202720 "clients": [
27212721 {
27222722 "id": " ' .$ uniqid .'",
2723- "flow": "xtls-rprx-direct "
2723+ "flow": ""
27242724 }
27252725 ],
27262726 "decryption": "none",
@@ -2763,7 +2763,7 @@ function editInbound($server_id, $uniqid, $remark, $protocol, $netType = 'tcp',
27632763 "clients": [
27642764 {
27652765 "id": " ' .$ uniqid .'",
2766- "flow": "xtls-rprx-direct "
2766+ "flow": ""
27672767 }
27682768 ],
27692769 "decryption": "none",
@@ -3013,7 +3013,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
30133013 "clients": [
30143014 {
30153015 "id": " ' .$ client_id .'",
3016- "flow": "xtls-rprx-direct "
3016+ "flow": ""
30173017 }
30183018 ],
30193019 "decryption": "none",
@@ -3079,7 +3079,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
30793079 "clients": [
30803080 {
30813081 "password": " ' .$ client_id .'",
3082- "flow": "xtls-rprx-direct "
3082+ "flow": ""
30833083 }
30843084 ],
30853085 "fallbacks": []
@@ -3126,7 +3126,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
31263126 "clients": [
31273127 {
31283128 "id": " ' .$ client_id .'",
3129- "flow": "xtls-rprx-direct "
3129+ "flow": ""
31303130 }
31313131 ],
31323132 "decryption": "none",
@@ -3239,7 +3239,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
32393239 "clients": [
32403240 {
32413241 "id": " ' .$ client_id .'",
3242- "flow": "xtls-rprx-direct "
3242+ "flow": ""
32433243 }
32443244 ],
32453245 "decryption": "none",
@@ -3266,7 +3266,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
32663266 "www.yahoo.com"
32673267] ' ;
32683268 $ spiderX = !empty ($ file_detail ['spiderX ' ])?$ file_detail ['spiderX ' ]:"" ;
3269- $ flow = $ file_detail ['flow ' ] == "None " ? "" : $ file_detail ['flow ' ];
3269+ $ flow = isset ( $ file_detail ['flow ' ]) && $ file_detail [ ' flow ' ] != "None " ? $ file_detail ['flow ' ] : "" ;
32703270
32713271
32723272 $ netType = "tcp " ;
@@ -3338,7 +3338,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
33383338 "clients": [
33393339 {
33403340 "id": " ' .$ client_id .'",
3341- "flow": "xtls-rprx-direct "
3341+ "flow": ""
33423342 }
33433343 ],
33443344 "decryption": "none",
0 commit comments