summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-25 01:08:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-25 01:08:00 +0000
commitd7e105065df0b19144a411ec59e699971867271c (patch)
treee694eec3e776e966061ae1a7495865e663a57cce /usr/local/www
parenta262450f8132b2261f480cf5ee1c636bfe804548 (diff)
downloadpfsense-d7e105065df0b19144a411ec59e699971867271c.zip
pfsense-d7e105065df0b19144a411ec59e699971867271c.tar.gz
Kill sshd if user has deactivated it.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_advanced.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 20afb34..85a2420 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -109,6 +109,7 @@ if ($_POST) {
touch("{$g['tmp_path']}/start_sshd");
} else {
unset($config['system']['enablesshd']);
+ mwexec("/usr/bin/killall sshd");
}
$oldsshport = $config['system']['ssh']['port'];
$config['system']['ssh']['port'] = $_POST['sshport'];
OpenPOWER on IntegriCloud