r1596 + generate protocol automatically for LVS case
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 22 Jan 2008 16:57:23 +0000 (16:57 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 22 Jan 2008 16:57:23 +0000 (16:57 +0000)
inc/interface.php

index 0a6295d70783aae5d83e1799cf2678e0d15e87aa..2146d352da3ecccca5d717627cee4df54cf90205 100644 (file)
@@ -3681,6 +3681,7 @@ function renderLVSConfig ($object_id = 0)
                );
                $vsconfig = apply_macros ($macros, $vsinfo['vs_vsconfig'] . $vsinfo['lb_vsconfig'] . $vsinfo['pool_vsconfig']);
                $newconfig .=  "virtual_server ${vsinfo['vip']} ${vsinfo['vport']} {\n";
+               $newconfig .=  "\tprotocol ${vsinfo['proto']}\n";
                $newconfig .=  "${vsconfig}\n";
                foreach ($vsinfo['rslist'] as $rs)
                {