'', '443' => '', '1935' => '', '1937' => '' ]; if (file_exists($jsonFile)) { $stored = json_decode(file_get_contents($jsonFile), true); if (is_array($stored)) { $data = array_merge($data, $stored); } } if ($_SERVER['REQUEST_METHOD'] === 'POST') { foreach ($data as $port => $val) { $data[$port] = trim($_POST["port_$port"] ?? ''); } file_put_contents($jsonFile, json_encode($data, JSON_PRETTY_PRINT)); } ?>

Firewall Allowed IPs

$value): ?>
Example: 192.168.1.10, 2001:db8::1