r1429 + print comments for real servers, if they are known
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 21:25:50 +0000 (21:25 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 21:25:50 +0000 (21:25 +0000)
inc/interface.php

index f6e51590eb66000c1e68e37f2a65abce1b9db0b2..436ba2537ceebb0cac01a0c52e642bc02da1d382 100644 (file)
@@ -3521,7 +3521,11 @@ function renderLVSConfig ($object_id = 0)
                                echo '# auto-VIP: ' . (empty ($vipdata['description']) ? 'NO NAME' : $vipdata['description'])  . "\n";
                                echo "virtual_server ${vip} ${vport}\n";
                                foreach ($vportdata['rs'] as $rs)
+                               {
+                                       if (!empty ($rs['description']))
+                                               echo "\t# " . $rs['description'] . "\n";
                                        echo "\treal_server ${rs['address']} ${rs['port']} {\n\t}\n";
+                               }
                                echo "}\n\n";
                        }
                }