summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pool.js
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2008-08-05 05:03:55 +0000
committerBill Marquette <billm@pfsense.org>2008-08-05 05:03:55 +0000
commit50d86c13771164ab18c0de426f434f55c9b0cdce (patch)
treebd8ffe5404e37c26f4406c073cbec321700b5aaf /usr/local/www/pool.js
parentfbf672cbe9c241459579a83be00df9f20dd47dc0 (diff)
downloadpfsense-50d86c13771164ab18c0de426f434f55c9b0cdce.zip
pfsense-50d86c13771164ab18c0de426f434f55c9b0cdce.tar.gz
Bring in new server load balancing code, this introduces:
* The ability to create your own monitors (tcp, http, https, send/expect) * A new way of displaying 'standard tables' - MainTable class * monitor_type array type
Diffstat (limited to 'usr/local/www/pool.js')
-rwxr-xr-xusr/local/www/pool.js24
1 files changed, 2 insertions, 22 deletions
diff --git a/usr/local/www/pool.js b/usr/local/www/pool.js
index 5a4b480..ab6303d 100755
--- a/usr/local/www/pool.js
+++ b/usr/local/www/pool.js
@@ -2,7 +2,7 @@
pool.js
part of pfSense (http://www.pfsense.com/)
- Copyright (C) 2005 Bill Marquette <bill.marquette@gmail.com>.
+ Copyright (C) 2005-2008 Bill Marquette <bill.marquette@gmail.com>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -31,27 +31,7 @@
* operates on whatever form is passed to it
*/
function AddServerToPool(form) {
-
- var IntOrIp;
- var enabledSel = form['servers[]'];
- var disabledSel = form['serversdisabled[]'];
- if (form.type.selectedIndex == 0)
- IntOrIp = form.ipaddr;
- else
- IntOrIp = form.iface;
-
- if (form.type.selectedIndex == 1) {
- if (!form.monitorip.value) {
- alert("Monitor IP Required First!");
- return true;
- }
- }
-
- var ServerPort = IntOrIp.value;
- if(form.type.selectedIndex == 0)
- var ServerPort = IntOrIp.value;
- else
- var ServerPort = IntOrIp.value + "|" + form.monitorip.value;
+ var ServerPort = form.ipaddr.value;
form['servers[]'].options[form['servers[]'].options.length] = new Option(ServerPort,ServerPort);
}
OpenPOWER on IntegriCloud