diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-30 09:09:32 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-30 09:09:52 -0200 |
commit | 87b30cfae153118e8ed4eec0fa04f4968d31452e (patch) | |
tree | 6abc8fca0e020eaa7e70bb06d04b83c3762be937 /src | |
parent | dc6927bcc7d6a6817d6a52ab39098a6007421b94 (diff) | |
download | pfsense-87b30cfae153118e8ed4eec0fa04f4968d31452e.zip pfsense-87b30cfae153118e8ed4eec0fa04f4968d31452e.tar.gz |
Remove workaround to get dpinger running when interface is in tentative state
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/gwlb.inc | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index c2ef9d7..1987e28 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -281,32 +281,14 @@ function setup_gateways_monitor() { stop_dpinger(); /* Start new processes */ - $failed = array(); foreach ($gateways_arr as $gateway) { if (!isset($gateway['enable_dpinger'])) { continue; } if (start_dpinger($gateway) != 0) { - /* - * Save process didn't start and try - * again later - */ - $failed[] = $gateway['name']; - } - } - - if (!empty($failed)) { - /* 1 second is enough for IPv6 DAD to finish */ - sleep(1); - foreach ($gateways_arr as $gateway) { - if (!in_array($gateway['name'], $failed)) { - continue; - } - if (start_dpinger($gateway) != 0) { - log_error("Error starting gateway monitor " . - "for {$gateway['name']}"); - } + log_error("Error starting gateway monitor for " . + $gateway['name']); } } |