hysteria: logging, correct port
This commit is contained in:
+2
-2
@@ -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) : '';
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user