hysteria: logging, correct port

This commit is contained in:
mercury
2025-12-04 02:23:00 +04:00
parent 61d8b899e7
commit c5b9886470
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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) : '';
+1
View File
@@ -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']);
-1
View File
@@ -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