From c5b98864707f33cf4e92937c8d2075ad19471493 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 4 Dec 2025 02:23:00 +0400 Subject: [PATCH] hysteria: logging, correct port --- app/bot.php | 4 ++-- app/service.php | 1 + scripts/start_hysteria.sh | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/bot.php b/app/bot.php index 03b7f50..2c0c57f 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1175,7 +1175,7 @@ class Bot $c['auth']['password'] = $pac['hysteria_pass']; yaml_emit_file('/config/hysteria.yaml', $c); if (!empty($pac['hysteria_pass'])) { - $this->ssh('hysteria server -c /config/hysteria.yaml', 'hy', false); + $this->ssh('hysteria server -c /config/hysteria.yaml', 'hy', false, '/logs/hysteria'); } } @@ -8612,7 +8612,7 @@ DNS-over-HTTPS with IP: { $port = (int) $port; $ports = [ - 'hy' => 443, + 'hy' => '443/udp', ]; $f = '/docker/compose'; $content = file_exists($f) ? file_get_contents($f) : ''; diff --git a/app/service.php b/app/service.php index b56d27a..2520661 100644 --- a/app/service.php +++ b/app/service.php @@ -25,6 +25,7 @@ $bot->cloakNginx(); $bot->syncDeny(); $bot->cleanDocker(); $bot->dnsttStart(); +$bot->restartHysteria(); $c = $bot->getPacConf(); $bot->setUpstreamDomain($c['pac']['transport'] != 'Reality' ? 't' : ($c['pac']['reality']['domain'] ?: $c['xray']['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0])); $bot->setUpstreamDomainNaive($c['domain']); diff --git a/scripts/start_hysteria.sh b/scripts/start_hysteria.sh index 546d204..3d56de1 100644 --- a/scripts/start_hysteria.sh +++ b/scripts/start_hysteria.sh @@ -1,5 +1,4 @@ cat /ssh/key.pub > /root/.ssh/authorized_keys ssh-keygen -A exec /usr/sbin/sshd -D -e "$@" & -hysteria server -c /config/hysteria.yaml & tail -f /dev/null