Skip to content

Commit ab0e8bc

Browse files
authored
Rename config output
1 parent 99d2df4 commit ab0e8bc

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

bot.php

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -865,13 +865,14 @@
865865
if($portType == "auto"){
866866
$port++;
867867
}else{
868-
$port = rand(1111,65000);
868+
$port = rand(12222,65000);
869869
}
870870
$last_num++;
871871

872872
//$remark = "{$srv_remark}-{$last_num}";
873-
$rnd = RandomString(4);
874-
$remark = "{$srv_remark}-{$from_id}-{$rnd}";
873+
//$rnd = RandomString(2);
874+
$randadad = rand(1000,99000);
875+
$remark = "{$srv_remark}-{$randadad}";
875876
if($inbound_id == 0){
876877
$response = addUser($server_id, $uniqid, $protocol, $port, $expire_microdate, $remark, $volume, $netType);
877878
}else {
@@ -1229,13 +1230,15 @@
12291230
$srv_remark = $stmt->get_result()->fetch_assoc()['remark'];
12301231
$stmt->close();
12311232

1232-
//$remark = "{$srv_remark}-{$last_num}";
1233-
$rnd = RandomString(4);
1234-
$remark = "{$srv_remark}-{$from_id}-{$rnd}";
1233+
//$remark = "{$srv_remark}-{$last_num}";
1234+
//$rnd = RandomString(2);
1235+
$randadad = rand(1000,99000);
1236+
$remark = "{$srv_remark}-{$randadad}";
1237+
12351238
if($portType == "auto"){
12361239
file_put_contents('temp.txt',$port.'-'.$last_num);
12371240
}else{
1238-
$port = rand(1111,65000);
1241+
$port = rand(12222,65000);
12391242
}
12401243

12411244
if($inbound_id == 0){
@@ -1484,13 +1487,15 @@
14841487
$portType = $stmt->get_result()->fetch_assoc()['port_type'];
14851488
$stmt->close();
14861489

1487-
// $remark = "{$srv_remark}-{$last_num}";
1488-
$rnd = RandomString(4);
1489-
$remark = "{$srv_remark}-{$uid}-{$rnd}";
1490+
//$remark = "{$srv_remark}-{$last_num}";
1491+
//$rnd = RandomString(2);
1492+
$randadad = rand(1000,99000);
1493+
$remark = "{$srv_remark}-{$randadad}";
1494+
14901495
if($portType == "auto"){
14911496
file_put_contents('temp.txt',$port.'-'.$last_num);
14921497
}else{
1493-
$port = rand(1111,65000);
1498+
$port = rand(12222,65000);
14941499
}
14951500

14961501
if($inbound_id == 0){
@@ -2300,14 +2305,15 @@
23002305
$stmt->close();
23012306

23022307

2303-
// $remark = "{$srv_remark}-{$last_num}";
2304-
$rnd = RandomString(4);
2305-
$remark = "{$srv_remark}-{$from_id}-{$rnd}";
2308+
//$remark = "{$srv_remark}-{$last_num}";
2309+
//$rnd = RandomString(2);
2310+
$randadad = rand(1000,99000);
2311+
$remark = "{$srv_remark}-{$randadad}";
23062312

23072313
if($portType == "auto"){
23082314
file_put_contents('temp.txt',$port.'-'.$last_num);
23092315
}else{
2310-
$port = rand(1111,65000);
2316+
$port = rand(12222,65000);
23112317
}
23122318
if($inbound_id == 0){
23132319
$response = addUser($server_id, $uniqid, $protocol, $port, $expire_microdate, $remark, $volume, $netType);

0 commit comments

Comments
 (0)