diff options
-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 3c58fc5..a71b0e4 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -100,7 +100,7 @@ function start_dpinger($gateway) { $prefix = "{$g['varrun_path']}/dpinger_{$gateway['name']}~" . "{$gateway['gwifip']}~{$gateway['monitor']}"; # dpinger socket path should not be longer then uaddr.sun_path - if (strlen($pidfile) > 95) { + if (strlen($prefix) > 95) { $prefix = "{$g['varrun_path']}/dpinger_{$gateway['name']}~" . substr(md5($gateway['gwifip']),0,8) . "~" . $gateway['monitor']; |