From 7d316581f4bf05613a556867b1154e4b5b842b1a Mon Sep 17 00:00:00 2001 From: aaa2ppp Date: Mon, 13 Mar 2017 03:24:50 +0400 Subject: Update interfaces.inc Not defined pid file on starting choparp. The pfSense may not kill the program to reconfiguration. --- src/etc/inc/interfaces.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/etc') diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 155da45..e91fbe0 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -2230,7 +2230,9 @@ function interface_proxyarp_configure($interface = "") { if (!is_ipaddr($paaifip)) { return; } - $args = get_real_interface($interface) . " auto"; + $vipif = get_real_interface($interface); + $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid "; + $args .= $vipif . " auto"; foreach ($paa[$interface] as $paent) { if (isset($paent['subnet'])) { $args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}"); @@ -2246,7 +2248,9 @@ function interface_proxyarp_configure($interface = "") { if (!is_ipaddr($paaifip)) { continue; } - $args = get_real_interface($paif) . " auto"; + $vipif = get_real_interface($paif); + $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid "; + $args .= $vipif . " auto"; foreach ($paents as $paent) { if (isset($paent['subnet'])) { $args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}"); -- cgit v1.1