removed check when adding a subnet to openconnect

This commit is contained in:
mercury
2024-11-28 20:11:05 +04:00
parent 8ba7ddedee
commit f896b307ea
-3
View File
@@ -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) {