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:
parent
34d27e1361
commit
07d8b89305
3 changed files with 7 additions and 71 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue