fix input timer autoscan

This commit is contained in:
mercury
2024-11-14 02:32:03 +04:00
parent 8a3d9c1007
commit 1edc9e8608
+4 -2
View File
@@ -4934,9 +4934,11 @@ DNS-over-HTTPS with IP:
if (empty($time)) {
unset($pac['autoscan_timeout']);
unset($pac['autoscan']);
} else {
$pac['autoscan_timeout'] = strtotime($time, 0);
} elseif ($t = strtotime($time, 0)) {
$pac['autoscan_timeout'] = $t;
$pac['autoscan'] = 1;
} else {
$this->send($this->input['from'], "$time - wrong format", $this->input['message_id']);
}
$this->setPacConf($pac);
$this->ipMenu();