Compare commits

..

4 Commits

Author SHA1 Message Date
mercury ca92ca703f update version 2025-02-08 15:52:49 +04:00
mercury f527888db8 vless: singbox 1.11 migrate 2025-02-08 15:51:44 +04:00
mercury 0e47a771cc Reapply "update singbox 1.11 windows x64"
This reverts commit 414a67c10d.
2025-02-08 15:51:20 +04:00
mercury ff10cbefc8 vless: fix reset stats 2025-02-07 22:44:55 +04:00
4 changed files with 29 additions and 24 deletions
+7 -2
View File
@@ -5406,9 +5406,14 @@ DNS-over-HTTPS with IP:
public function resetXrStats()
{
$this->restartXray($this->getXray());
$x = $this->getXray();
$p = $this->getPacConf();
unset($p['vlessstat']);
foreach ($x['inbounds'][0]['settings']['clients'] as $k => $v) {
unset($x['inbounds'][0]['settings']['clients'][$k]['global']);
unset($x['inbounds'][0]['settings']['clients'][$k]['session']);
}
$this->restartXray($x);
$this->setPacConf($p);
$this->xray();
}
@@ -6494,7 +6499,7 @@ DNS-over-HTTPS with IP:
$c['route'] = $this->createRuleSet($c['route'], $uid, $domain);
if (!empty($c['route']['rules'])) {
foreach ($c['route']['rules'] as $k => $v) {
if (count($v) < 2) {
if (count($v) == 1 && array_key_exists('outbound', $v)) {
unset($c['route']['rules'][$k]);
}
}
+20 -22
View File
@@ -9,12 +9,12 @@
"tag": "tun-in",
"domain_strategy": "prefer_ipv4",
"interface_name": "sing-tun",
"address": ["172.19.0.1\/30"],
"address": [
"172.19.0.1\/30"
],
"mtu": 1400,
"gso": true,
"auto_route": true,
"strict_route": true,
"sniff": true,
"endpoint_independent_nat": false,
"stack": "mixed",
"platform": {
@@ -27,14 +27,7 @@
},
{
"type": "mixed",
"tag": "mixed-in",
"domain_strategy": "prefer_ipv4",
"listen": "127.0.0.1",
"listen_port": 2080,
"tcp_fast_open": true,
"sniff": true,
"sniff_override_destination": false,
"users": []
"tag": "in"
}
],
"dns": {
@@ -92,23 +85,28 @@
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"auto_detect_interface": true,
"override_android_vpn": true,
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"outbound": "dns-out"
"action": "hijack-dns"
},
{
"inbound": "in",
"action": "resolve",
"strategy": "prefer_ipv4"
},
{
"inbound": "in",
"action": "sniff",
"timeout": "1s"
},
{
"addruleset": true,
@@ -187,7 +185,7 @@
]
}
],
"outbound": "block"
"action": "reject"
},
{
"addruleset": true,
@@ -207,4 +205,4 @@
],
"final": "direct"
}
}
}
Binary file not shown.
+2
View File
@@ -1,3 +1,5 @@
08.02.2025 v2.11
- vless: singbox 1.11
07.02.2025 v2.10
- vless: ip limit
- vless: общая стата