Commit f2c83940 authored by Jos Schellevis's avatar Jos Schellevis

Check if sshdkeyonly is set or not before unsetting, fixes #8

parent 13f6f65e
......@@ -185,7 +185,7 @@ if ($_POST) {
$sshd_keyonly = isset($config['system']['ssh']['sshdkeyonly']);
if ($_POST['sshdkeyonly'])
$config['system']['ssh']['sshdkeyonly'] = true;
else
else if (isset($config['system']['ssh']['sshdkeyonly']))
unset($config['system']['ssh']['sshdkeyonly']);
$sshd_port = $config['system']['ssh']['port'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment