1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update luci-haproxy-tcp

This commit is contained in:
Ycarus 2018-02-28 12:16:51 +01:00
parent 34d27e1361
commit 07d8b89305
3 changed files with 7 additions and 71 deletions

View file

@ -5,7 +5,7 @@
START=85
USE_PROCD=1
PROG_NAME=haproxy-tcp
PROG_NAME=haproxy
PROG=/usr/sbin/${PROG_NAME}
PIDCOUNT=0
@ -77,9 +77,9 @@ start_instance() {
default_backend tcp-out
backend tcp-out
$( if [ 0 -lt $(grep -c weight /etc/config/$PROG_NAME) ]; then
$( if [ 0 -lt $(grep -c weight /etc/config/haproxy-tcp) ]; then
echo " balance static-rr"
sed -n 's/.*upstreams[\t ]*//p' /etc/config/$PROG_NAME |
sed -n 's/.*upstreams[\t ]*//p' /etc/config/haproxy-tcp |
while read upstream; do
genline_srv "$upstream"
done