From 7e2a908da7333bf31e8793ea3133d4b31f1cd737 Mon Sep 17 00:00:00 2001 From: legiz-ru Date: Sun, 12 Apr 2026 22:59:42 +0300 Subject: [PATCH] fix: mihomo config delete localhost socks5 update xhttp config --- app/bot.php | 47 ++++++++++++----------------------------------- config/clash.json | 3 --- 2 files changed, 12 insertions(+), 38 deletions(-) diff --git a/app/bot.php b/app/bot.php index b1752c8..c5b99d3 100644 --- a/app/bot.php +++ b/app/bot.php @@ -7843,41 +7843,18 @@ DNS-over-HTTPS with IP: $c['proxies'][$index]['skip-cert-verify'] = false; $c['proxies'][$index]['xhttp-opts'] = [ - 'host' => '~domain~', - 'path' => "/ws$hash", // путь как у ws + hash - 'mode' => 'packet-up', - 'http-version' => '2', - 'x-padding-bytes' => [ - 'from' => 100, - 'to' => 1000, - ], - 'sc-max-each-post-bytes' => [ - 'from' => 1000000, - 'to' => 1000000, - ], - 'sc-min-posts-interval-ms' => [ - 'from' => 30, - 'to' => 30, - ], - 'sc-stream-up-server-secs' => [ - 'from' => 25, - 'to' => 60, - ], - 'xmux' => [ - 'max-concurrency' => [ - 'from' => 8, - 'to' => 16, - ], - 'max-connections' => 0, - 'h-keep-alive-period' => 15, - 'h-max-request-times' => [ - 'from' => 100, - 'to' => 200, - ], - 'h-max-reusable-secs' => [ - 'from' => 1800, - 'to' => 3000, - ], + 'host' => '~domain~', + 'path' => "/ws$hash", + 'mode' => 'packet-up', + 'no-grpc-header' => false, + 'x-padding-bytes' => '100-1000', + 'sc-max-each-post-bytes' => 1000000, + 'reuse-settings' => [ + 'max-connections' => '0', + 'max-concurrency' => '8-16', + 'c-max-reuse-times' => '0', + 'h-max-request-times' => '100-200', + 'h-max-reusable-secs' => '1800-3000', ], ]; break; diff --git a/config/clash.json b/config/clash.json index 52510be..b40ca6f 100644 --- a/config/clash.json +++ b/config/clash.json @@ -1,6 +1,4 @@ { - "mixed-port": 2080, - "allow-lan": true, "tcp-concurrent": true, "enable-process": true, "find-process-mode": "strict", @@ -50,7 +48,6 @@ }, "dns": { "enable": true, - "listen": ":1053", "prefer-h3": false, "ipv6": false, "enhanced-mode": "fake-ip",