From 1e476e11c491915103e72c501d70caa5e6883cb9 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 8 May 2012 12:54:00 -0400 Subject: $realif only exists on apply, which this code path would never touch. Change to use the configured interface instead. Fixes #2212 --- usr/local/www/interfaces.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index f85a8a5..3b05c9a 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -530,7 +530,7 @@ if ($_POST['apply']) { $wancfg['if'] = $a_ppps[$pppid]['ports']; unset($a_ppps[$pppid]); } else if ($wancfg['ipaddr'] == "dhcp") { - $pid = find_dhclient_process($realif); + $pid = find_dhclient_process($wancfg['if']); if($pid) posix_kill($pid, SIGTERM); } -- cgit v1.1