diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-23 09:20:19 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-23 09:20:19 -0200 |
commit | c987a2065f9699ca74ce06d96c26650b5d0f4c04 (patch) | |
tree | 5893e519c34a6b3edf62e4834fa5c82ceed1edd8 /src/etc/inc/gwlb.inc | |
parent | 5a2512b3cdb249e3eeda8e480dfbac80deb37e7d (diff) | |
download | pfsense-c987a2065f9699ca74ce06d96c26650b5d0f4c04.zip pfsense-c987a2065f9699ca74ce06d96c26650b5d0f4c04.tar.gz |
Be less specific with dpinger PID filename regex, old version was not matching IPv6 addresses, with or without %ifname in case of ll
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r-- | src/etc/inc/gwlb.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index 915d45d..2413c88 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -54,7 +54,7 @@ function running_dpinger_processes() { } foreach ($pidfiles as $pidfile) { - if (preg_match('/^dpinger_(\w+)_([\d\.:]+)_([\d\.:]+)\.pid$/', + if (preg_match('/^dpinger_(.+)_([^_]+)_([^_]+)\.pid$/', basename($pidfile), $matches)) { $socket_file = preg_replace('/\.pid$/', '.sock', $pidfile); |