Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eb1ad21c88 | |||
| a3ca7d9ed8 | |||
| 60ba3cf15c | |||
| cd8bcbe05a | |||
| 6cc05c88e7 |
+137
-16
@@ -139,12 +139,18 @@ class Bot
|
|||||||
case preg_match('~^/mirror$~', $this->input['message'], $m):
|
case preg_match('~^/mirror$~', $this->input['message'], $m):
|
||||||
$this->menu('mirror');
|
$this->menu('mirror');
|
||||||
break;
|
break;
|
||||||
|
case preg_match('~^/autoupdate$~', $this->input['message'], $m):
|
||||||
|
$this->autoupdate();
|
||||||
|
break;
|
||||||
case preg_match('~^/appOutbound$~', $this->input['callback'], $m):
|
case preg_match('~^/appOutbound$~', $this->input['callback'], $m):
|
||||||
$this->appOutbound();
|
$this->appOutbound();
|
||||||
break;
|
break;
|
||||||
case preg_match('~^/addSubdomain$~', $this->input['callback'], $m):
|
case preg_match('~^/addSubdomain$~', $this->input['callback'], $m):
|
||||||
$this->addSubdomain();
|
$this->addSubdomain();
|
||||||
break;
|
break;
|
||||||
|
case preg_match('~^/addLinkDomain$~', $this->input['callback'], $m):
|
||||||
|
$this->addLinkDomain();
|
||||||
|
break;
|
||||||
case preg_match('~^/id$~', $this->input['message'], $m):
|
case preg_match('~^/id$~', $this->input['message'], $m):
|
||||||
$this->send($this->input['chat'], $this->input['from'], $this->input['message_id']);
|
$this->send($this->input['chat'], $this->input['from'], $this->input['message_id']);
|
||||||
break;
|
break;
|
||||||
@@ -1090,6 +1096,10 @@ class Bot
|
|||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
if ($this->getPacConf()['autoupdate']) {
|
||||||
|
$this->input['chat'] = $this->input['from'] = $c['admin'][0];
|
||||||
|
$this->applyupdatebot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1356,6 +1366,7 @@ class Bot
|
|||||||
$out[] = 'update xray';
|
$out[] = 'update xray';
|
||||||
$this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out));
|
$this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out));
|
||||||
$this->restartXray($json['xray']);
|
$this->restartXray($json['xray']);
|
||||||
|
$this->adguardXrayClients();
|
||||||
$this->setUpstreamDomain($json['pac']['transport'] == 'Websocket' ? 't' : ($json['pac']['reality']['domain'] ?: $json['xray']['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0]));
|
$this->setUpstreamDomain($json['pac']['transport'] == 'Websocket' ? 't' : ($json['pac']['reality']['domain'] ?: $json['xray']['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0]));
|
||||||
}
|
}
|
||||||
// ocserv
|
// ocserv
|
||||||
@@ -1590,7 +1601,7 @@ class Bot
|
|||||||
{
|
{
|
||||||
$conf = $this->getPacConf();
|
$conf = $this->getPacConf();
|
||||||
$ip = $this->ip;
|
$ip = $this->ip;
|
||||||
$domain = $conf['domain'] ?: $ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$ss = $this->getSSConfig();
|
$ss = $this->getSSConfig();
|
||||||
$port = !empty($ss['plugin']) ? (!empty($ssl) ? 443 : 80) : getenv('SSPORT');
|
$port = !empty($ss['plugin']) ? (!empty($ssl) ? 443 : 80) : getenv('SSPORT');
|
||||||
@@ -2077,10 +2088,41 @@ class Bot
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function addLinkDomain()
|
||||||
|
{
|
||||||
|
$r = $this->send(
|
||||||
|
$this->input['chat'],
|
||||||
|
"@{$this->input['username']} enter domain for link",
|
||||||
|
$this->input['message_id'],
|
||||||
|
reply: 'enter domain for link',
|
||||||
|
);
|
||||||
|
$_SESSION['reply'][$r['result']['message_id']] = [
|
||||||
|
'start_message' => $this->input['message_id'],
|
||||||
|
'callback' => 'setLinkDomain',
|
||||||
|
'args' => [],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setLinkDomain($text)
|
||||||
|
{
|
||||||
|
$c = $this->getPacConf();
|
||||||
|
if (empty($text)) {
|
||||||
|
unset($c['linkdomain']);
|
||||||
|
} else {
|
||||||
|
$c['linkdomain'] = trim($text);
|
||||||
|
}
|
||||||
|
$this->setPacConf($c);
|
||||||
|
$this->menu('config');
|
||||||
|
}
|
||||||
|
|
||||||
public function setSubdomain($text)
|
public function setSubdomain($text)
|
||||||
{
|
{
|
||||||
$c = $this->getPacConf();
|
$c = $this->getPacConf();
|
||||||
$c['subdomain'] = array_filter(explode(',', $text), fn($e) => !empty(trim($e)));
|
if (empty($text)) {
|
||||||
|
unset($c['subdomain']);
|
||||||
|
} else {
|
||||||
|
$c['subdomain'] = array_filter(explode(',', $text), fn($e) => !empty(trim($e)));
|
||||||
|
}
|
||||||
$this->setPacConf($c);
|
$this->setPacConf($c);
|
||||||
$this->menu('config');
|
$this->menu('config');
|
||||||
}
|
}
|
||||||
@@ -2152,6 +2194,61 @@ class Bot
|
|||||||
$this->menu('adguard');
|
$this->menu('adguard');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function guidv4($data = null) {
|
||||||
|
// Generate 16 bytes (128 bits) of random data or use the data passed into the function.
|
||||||
|
$data = $data ?? random_bytes(16);
|
||||||
|
assert(strlen($data) == 16);
|
||||||
|
|
||||||
|
// Set version to 0100
|
||||||
|
$data[6] = chr(ord($data[6]) & 0x0f | 0x40);
|
||||||
|
// Set bits 6-7 to 10
|
||||||
|
$data[8] = chr(ord($data[8]) & 0x3f | 0x80);
|
||||||
|
|
||||||
|
// Output the 36 character UUID.
|
||||||
|
return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function adguardXrayClients()
|
||||||
|
{
|
||||||
|
$xr = $this->getXray();
|
||||||
|
$ad = yaml_parse_file($this->adguard);
|
||||||
|
foreach ($xr['inbounds'][0]['settings']['clients'] as $k => $v) {
|
||||||
|
$tmp[] = [
|
||||||
|
'safe_search' => [
|
||||||
|
'enabled' => true,
|
||||||
|
'bing' => true,
|
||||||
|
'duckduckgo' => true,
|
||||||
|
'google' => true,
|
||||||
|
'pixabay' => true,
|
||||||
|
'yandex' => true,
|
||||||
|
'youtube' => true,
|
||||||
|
],
|
||||||
|
'blocked_services' => [
|
||||||
|
'schedule' => ['time_zone' => date_default_timezone_get()],
|
||||||
|
'ids' => [],
|
||||||
|
],
|
||||||
|
'name' => $v['email'],
|
||||||
|
'ids' => [$v['id']],
|
||||||
|
'tags' => [],
|
||||||
|
'upstreams' => [],
|
||||||
|
'uid' => $v['id'],
|
||||||
|
'upstreams_cache_size' => 0,
|
||||||
|
'upstreams_cache_enabled' => false,
|
||||||
|
'use_global_settings' => true,
|
||||||
|
'filtering_enabled' => false,
|
||||||
|
'parental_enabled' => false,
|
||||||
|
'safebrowsing_enabled' => false,
|
||||||
|
'use_global_blocked_services' => true,
|
||||||
|
'ignore_querylog' => false,
|
||||||
|
'ignore_statistics' => false,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
$ad['clients']['persistent'] = $tmp;
|
||||||
|
yaml_emit_file($this->adguard, $ad);
|
||||||
|
$this->stopAd();
|
||||||
|
$this->startAd();
|
||||||
|
}
|
||||||
|
|
||||||
public function checkdns()
|
public function checkdns()
|
||||||
{
|
{
|
||||||
$r = $this->send(
|
$r = $this->send(
|
||||||
@@ -3175,7 +3272,7 @@ DNS-over-HTTPS with IP:
|
|||||||
$mpac = stat(__DIR__ . '/zapretlists/mpac');
|
$mpac = stat(__DIR__ . '/zapretlists/mpac');
|
||||||
$pac = stat(__DIR__ . '/zapretlists/pac');
|
$pac = stat(__DIR__ . '/zapretlists/pac');
|
||||||
$conf = $this->getPacConf();
|
$conf = $this->getPacConf();
|
||||||
$ip = $conf['domain'] ?: $this->ip;
|
$ip = $this->getDomain();
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$text = <<<text
|
$text = <<<text
|
||||||
@@ -3587,7 +3684,7 @@ DNS-over-HTTPS with IP:
|
|||||||
{
|
{
|
||||||
$conf = $this->getPacConf();
|
$conf = $this->getPacConf();
|
||||||
$ip = $this->ip;
|
$ip = $this->ip;
|
||||||
$domain = $conf['domain'] ?: $ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$ss = $this->getSSConfig();
|
$ss = $this->getSSConfig();
|
||||||
$v2ray = !empty($ss['plugin']) ? 'ON' : 'OFF';
|
$v2ray = !empty($ss['plugin']) ? 'ON' : 'OFF';
|
||||||
@@ -3767,7 +3864,7 @@ DNS-over-HTTPS with IP:
|
|||||||
{
|
{
|
||||||
$c = $this->getXray();
|
$c = $this->getXray();
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
$si = "$scheme://{$domain}/pac/" . base64_encode(serialize([
|
$si = "$scheme://{$domain}/pac/" . base64_encode(serialize([
|
||||||
@@ -3841,8 +3938,9 @@ DNS-over-HTTPS with IP:
|
|||||||
public function naiveMenu()
|
public function naiveMenu()
|
||||||
{
|
{
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
|
$domain = $this->getDomain();
|
||||||
$text[] = "Menu -> NaiveProxy";
|
$text[] = "Menu -> NaiveProxy";
|
||||||
$text[] = "<code>https://{$pac['naive']['user']}:{$pac['naive']['pass']}@np.{$pac['domain']}</code>";
|
$text[] = "<code>https://{$pac['naive']['user']}:{$pac['naive']['pass']}@np.$domain</code>";
|
||||||
$data[] = [
|
$data[] = [
|
||||||
[
|
[
|
||||||
'text' => $this->i18n('change login'),
|
'text' => $this->i18n('change login'),
|
||||||
@@ -3934,6 +4032,7 @@ DNS-over-HTTPS with IP:
|
|||||||
public function ocMenu()
|
public function ocMenu()
|
||||||
{
|
{
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
|
$domain = $this->getDomain();
|
||||||
$ocserv = file_get_contents('/config/ocserv.conf');
|
$ocserv = file_get_contents('/config/ocserv.conf');
|
||||||
preg_match('~^camouflage_secret[^\n]+?"([^"]+)*"~sm', $ocserv, $m);
|
preg_match('~^camouflage_secret[^\n]+?"([^"]+)*"~sm', $ocserv, $m);
|
||||||
$cs = $m[1];
|
$cs = $m[1];
|
||||||
@@ -3942,7 +4041,7 @@ DNS-over-HTTPS with IP:
|
|||||||
$pass = htmlspecialchars($pac['ocserv']);
|
$pass = htmlspecialchars($pac['ocserv']);
|
||||||
$text[] = "Menu -> OpenConnect";
|
$text[] = "Menu -> OpenConnect";
|
||||||
if (!empty($m[1])) {
|
if (!empty($m[1])) {
|
||||||
$text[] = "<code>https://oc.{$pac['domain']}/?$cs</code>";
|
$text[] = "<code>https://oc.$domain/?$cs</code>";
|
||||||
}
|
}
|
||||||
$text[] = "password: <span class='tg-spoiler'>$pass</span>";
|
$text[] = "password: <span class='tg-spoiler'>$pass</span>";
|
||||||
$data[] = [
|
$data[] = [
|
||||||
@@ -4005,6 +4104,7 @@ DNS-over-HTTPS with IP:
|
|||||||
if ($i == $k) {
|
if ($i == $k) {
|
||||||
unset($r['inbounds'][0]['settings']['clients'][$k]);
|
unset($r['inbounds'][0]['settings']['clients'][$k]);
|
||||||
$this->restartXray($r);
|
$this->restartXray($r);
|
||||||
|
$this->adguardXrayClients();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4038,6 +4138,7 @@ DNS-over-HTTPS with IP:
|
|||||||
'email' => $user,
|
'email' => $user,
|
||||||
];
|
];
|
||||||
$this->restartXray($c);
|
$this->restartXray($c);
|
||||||
|
$this->adguardXrayClients();
|
||||||
$this->userXr(count($c['inbounds'][0]['settings']['clients']) - 1);
|
$this->userXr(count($c['inbounds'][0]['settings']['clients']) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4084,6 +4185,7 @@ DNS-over-HTTPS with IP:
|
|||||||
$c = $this->getXray();
|
$c = $this->getXray();
|
||||||
$c['inbounds'][0]['settings']['clients'][$i]['email'] = $name;
|
$c['inbounds'][0]['settings']['clients'][$i]['email'] = $name;
|
||||||
$this->restartXray($c);
|
$this->restartXray($c);
|
||||||
|
$this->adguardXrayClients();
|
||||||
$this->userXr($i);
|
$this->userXr($i);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4159,7 +4261,7 @@ DNS-over-HTTPS with IP:
|
|||||||
public function templates($type)
|
public function templates($type)
|
||||||
{
|
{
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
$text[] = "Menu -> " . $this->i18n('xray') . " -> $type templates";
|
$text[] = "Menu -> " . $this->i18n('xray') . " -> $type templates";
|
||||||
$templates = $pac["{$type}templates"];
|
$templates = $pac["{$type}templates"];
|
||||||
@@ -4482,7 +4584,7 @@ DNS-over-HTTPS with IP:
|
|||||||
{
|
{
|
||||||
$c = $this->getXray()['inbounds'][0]['settings']['clients'][$i];
|
$c = $this->getXray()['inbounds'][0]['settings']['clients'][$i];
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
|
|
||||||
@@ -4569,10 +4671,16 @@ DNS-over-HTTPS with IP:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDomain()
|
||||||
|
{
|
||||||
|
$c = $this->getPacConf();
|
||||||
|
return $c['linkdomain'] ?: ($c['domain'] ?: $this->ip);
|
||||||
|
}
|
||||||
|
|
||||||
public function v2raySubscription($key, $fs = 0)
|
public function v2raySubscription($key, $fs = 0)
|
||||||
{
|
{
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$xr = $this->getXray();
|
$xr = $this->getXray();
|
||||||
|
|
||||||
$flag = true;
|
$flag = true;
|
||||||
@@ -4612,7 +4720,7 @@ DNS-over-HTTPS with IP:
|
|||||||
{
|
{
|
||||||
$type = $_GET['t'] == 's' ? 'v2ray' : 'sing';
|
$type = $_GET['t'] == 's' ? 'v2ray' : 'sing';
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$xr = $this->getXray();
|
$xr = $this->getXray();
|
||||||
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
@@ -4625,6 +4733,7 @@ DNS-over-HTTPS with IP:
|
|||||||
}
|
}
|
||||||
$template = base64_decode($v["{$type}template"]);
|
$template = base64_decode($v["{$type}template"]);
|
||||||
$uid = $v['id'];
|
$uid = $v['id'];
|
||||||
|
$email = $v['email'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4741,7 +4850,7 @@ DNS-over-HTTPS with IP:
|
|||||||
break;
|
break;
|
||||||
case 'si':
|
case 'si':
|
||||||
if ($c['dns']['servers'][0]['address'] == '~dns~') {
|
if ($c['dns']['servers'][0]['address'] == '~dns~') {
|
||||||
$c['dns']['servers'][0]['address'] = "tls://" . ($pac['adguardkey'] ? "{$pac['adguardkey']}." : '') . "$domain";
|
$c['dns']['servers'][0]['address'] = "https://$domain/dns-query/$uid";
|
||||||
}
|
}
|
||||||
|
|
||||||
$c['outbounds'][0]['server'] = $_GET['cdn'] ?: $domain;
|
$c['outbounds'][0]['server'] = $_GET['cdn'] ?: $domain;
|
||||||
@@ -4833,7 +4942,7 @@ DNS-over-HTTPS with IP:
|
|||||||
public function createRuleSet($route, $uid)
|
public function createRuleSet($route, $uid)
|
||||||
{
|
{
|
||||||
$pac = $this->getPacConf();
|
$pac = $this->getPacConf();
|
||||||
$domain = $pac['domain'] ?: $this->ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$hash = substr(md5($this->key), 0, 8);
|
$hash = substr(md5($this->key), 0, 8);
|
||||||
|
|
||||||
@@ -5050,7 +5159,7 @@ DNS-over-HTTPS with IP:
|
|||||||
{
|
{
|
||||||
$conf = $this->getPacConf();
|
$conf = $this->getPacConf();
|
||||||
$ip = $this->ip;
|
$ip = $this->ip;
|
||||||
$domain = $conf['domain'] ?: $ip;
|
$domain = $this->getDomain();
|
||||||
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
|
||||||
$text = "$scheme://$domain/adguard\nLogin: admin\nPass: <span class='tg-spoiler'>{$conf['adpswd']}</span>\n\n";
|
$text = "$scheme://$domain/adguard\nLogin: admin\nPass: <span class='tg-spoiler'>{$conf['adpswd']}</span>\n\n";
|
||||||
if ($ssl) {
|
if ($ssl) {
|
||||||
@@ -5225,9 +5334,13 @@ DNS-over-HTTPS with IP:
|
|||||||
'callback_data' => $conf['domain'] ? '/deldomain' : '/domain',
|
'callback_data' => $conf['domain'] ? '/deldomain' : '/domain',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'text' => $this->i18n('subdomain'),
|
'text' => $this->i18n('+ subdomain'),
|
||||||
'callback_data' => '/addSubdomain',
|
'callback_data' => '/addSubdomain',
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'text' => $this->i18n('domain for link'),
|
||||||
|
'callback_data' => '/addLinkDomain',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
if ($conf['domain']) {
|
if ($conf['domain']) {
|
||||||
@@ -5723,7 +5836,7 @@ DNS-over-HTTPS with IP:
|
|||||||
$conf[] = '';
|
$conf[] = '';
|
||||||
$conf[] = $peer['# PublicKey'] ? '# [Peer]' : '[Peer]';
|
$conf[] = $peer['# PublicKey'] ? '# [Peer]' : '[Peer]';
|
||||||
if (!empty($peer['Endpoint'])) {
|
if (!empty($peer['Endpoint'])) {
|
||||||
$peer['Endpoint'] = ($pac['domain'] ? $pac['domain'] : $this->ip) . ":" . getenv($this->getInstanceWG(1) ? 'WG1PORT' : 'WGPORT');
|
$peer['Endpoint'] = $this->getDomain() . ":" . getenv($this->getInstanceWG(1) ? 'WG1PORT' : 'WGPORT');
|
||||||
}
|
}
|
||||||
foreach ($peer as $k => $v) {
|
foreach ($peer as $k => $v) {
|
||||||
$conf[] = "$k = $v";
|
$conf[] = "$k = $v";
|
||||||
@@ -5882,6 +5995,14 @@ DNS-over-HTTPS with IP:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function autoupdate()
|
||||||
|
{
|
||||||
|
$p = $this->getPacConf();
|
||||||
|
$p['autoupdate'] = !$p['autoupdate'];
|
||||||
|
$this->setPacConf($p);
|
||||||
|
$this->send($this->input['from'], $this->i18n('autoupdate') . ' ' . $this->i18n($p['autoupdate'] ? 'on' : 'off'));
|
||||||
|
}
|
||||||
|
|
||||||
public function disconnect(...$args)
|
public function disconnect(...$args)
|
||||||
{
|
{
|
||||||
$this->send($this->input['chat'], "disconnect: \n" . var_export($args, true) . "\n", $this->input['message_id']);
|
$this->send($this->input['chat'], "disconnect: \n" . var_export($args, true) . "\n", $this->input['message_id']);
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
17.09.2024 v1.55
|
||||||
|
- возможность подменить домен в ссылках на конфиги
|
||||||
|
16.09.2024 v1.54.2
|
||||||
|
- фикс нэйминга клиентов в adguardHome: замена на uuid
|
||||||
|
16.09.2024 v1.54.1
|
||||||
|
- фикс нэйминга клиентов в adguardHome
|
||||||
|
16.09.2024 v1.54
|
||||||
|
- ~dns~ в шаблоне сингбокса подменяятся на https://DOMAIN/dns-query/USERNAME
|
||||||
|
- при добавлении пользователя в XRAY, он также добавляется в AdguardHome как сохраненый клиент
|
||||||
10.09.2024 v1.53
|
10.09.2024 v1.53
|
||||||
- домен в endpoint для амнезии
|
- домен в endpoint для амнезии
|
||||||
10.09.2024 v1.52
|
10.09.2024 v1.52
|
||||||
|
|||||||
Reference in New Issue
Block a user