aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy_listeners.php
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-08 11:55:47 +1300
committerthompsa <andy@fud.org.nz>2010-02-08 11:55:47 +1300
commit19cd232b7740f23da662c687d306efecc7df5e6c (patch)
tree350733922b3881f4e4f1f67425c34338b0ca9e81 /config/haproxy-dev/haproxy_listeners.php
parent873104479790c7bafe3525377400cad9ecd928f8 (diff)
downloadpfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.tar.gz
pfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.tar.bz2
pfsense-packages-19cd232b7740f23da662c687d306efecc7df5e6c.zip
Move the ip:port to the listener page and allow the pool to show
multiple listeners attached.
Diffstat (limited to 'config/haproxy-dev/haproxy_listeners.php')
-rwxr-xr-xconfig/haproxy-dev/haproxy_listeners.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/config/haproxy-dev/haproxy_listeners.php b/config/haproxy-dev/haproxy_listeners.php
index 3a8d6701..5ffe0a09 100755
--- a/config/haproxy-dev/haproxy_listeners.php
+++ b/config/haproxy-dev/haproxy_listeners.php
@@ -100,11 +100,12 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="30%" class="listhdrr">Name</td>
- <td width="40%" class="listhdrr">Description</td>
+ <td width="20%" class="listhdrr">Name</td>
+ <td width="30%" class="listhdrr">Description</td>
+ <td width="20%" class="listhdrr">Address</td>
<td width="10%" class="listhdrr">Type</td>
- <td width="10%" class="listhdrr">Server pool</td>
- <td width="10%" class="list"></td>
+ <td width="10%" class="listhdrr">Server&nbsp;pool</td>
+ <td width="5%" class="list"></td>
</tr>
<?php $i = 0; foreach ($a_backend as $backend): ?>
<tr>
@@ -115,6 +116,17 @@ include("head.inc");
<?=$backend['desc'];?>
</td>
<td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';">
+<?php
+ if($backend['extaddr'] == "any")
+ echo "0.0.0.0";
+ elseif($backend['extaddr'])
+ echo $backend['extaddr'];
+ else
+ echo get_current_wan_address('wan');
+ echo ":" . $backend['port'];
+?>
+ </td>
+ <td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';">
<?=$backend['type'];?>
</td>
<td class="listlr" ondblclick="document.location='haproxy_listeners_edit.php?id=<?=$i;?>';">