r2167 - make SLB summary more narrow
[racktables] / inc / functions.php
index 0f33eb052c8ef6043688998823a5013ee81bf308..9db6790e461c49f54ae38a5cf04af037c6f764df 100644 (file)
@@ -1330,6 +1330,8 @@ function buildLVSConfig ($object_id = 0)
                );
                foreach ($vsinfo['rslist'] as $rs)
                {
+                       if (empty ($rs['rsport']))
+                               $rs['rsport'] = $vsinfo['vport'];
                        $macros['%RSIP%'] = $rs['rsip'];
                        $macros['%RSPORT%'] = $rs['rsport'];
                        $newconfig .=  "\treal_server ${rs['rsip']} ${rs['rsport']} {\n";