summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index eccd715..533a01f 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -213,7 +213,7 @@ sub isClusterIP {
foreach my $cluster_group (@cluster_groups) {
my @services = $vc->returnValues("cluster group $cluster_group service");
foreach my $service (@services) {
- if ($ip eq $service) {
+ if ($ip eq substr($service,0,index($service,'/'))) {
return 1;
}
}