From f896b307ea5b110fb844fa0c9dd39855b9ebb3be Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 28 Nov 2024 20:11:05 +0400 Subject: [PATCH] removed check when adding a subnet to openconnect --- app/bot.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/bot.php b/app/bot.php index a0ad6fe..003d991 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3130,9 +3130,6 @@ DNS-over-HTTPS with IP: public function subnetSave($text, $wgpage, $page, $openconnect) { - if (!preg_match('~^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d{1,2}$~', $text)) { - return $this->send($this->input['chat'], "wrong format: $text", $this->input['message_id']); - } $c = $this->getPacConf(); $subnets = explode(',', $text); if ($subnets) {