diff --git a/app/bot.php b/app/bot.php index 768eb6e..fa7c785 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4689,10 +4689,10 @@ DNS-over-HTTPS with IP: return 'off'; } - public function offWarp() + public function offWarp($inversion = true) { $p = $this->getPacConf(); - if (empty($p['warpoff'])) { + if ($inversion && empty($p['warpoff'])) { $this->ssh('warp-cli --accept-tos registration delete', 'wp'); $this->ssh('pkill warp-svc', 'wp'); $p['warpoff'] = 1; diff --git a/app/service.php b/app/service.php index c0eccb1..0f99ca8 100644 --- a/app/service.php +++ b/app/service.php @@ -14,6 +14,7 @@ $bot = new Bot($c['key'], $i); $bot->selfUpdate(); $bot->restartTG(); +$bot->offWarp(0); $bot->dontshowcron = 1; $bot->sslip(); $bot->cleanDocker();