Update sites.inc
This commit is contained in:
@@ -564,13 +564,6 @@ NEWPROXYSITE_CREATE(){
|
||||
|
||||
SITEINFO(){
|
||||
# start=`date +%s`
|
||||
cw_spc1=32
|
||||
cw_spc2=8
|
||||
cw_spc3=6
|
||||
cw_spc4=6
|
||||
cw_spc5=6
|
||||
cw_spc6=6
|
||||
cw_spc7=12
|
||||
dl=110
|
||||
|
||||
if [ "${1}" == "edit" ]; then
|
||||
@@ -604,7 +597,6 @@ SITEINFO(){
|
||||
scheme=${scheme##* }; scheme=${scheme%;*}
|
||||
port=$(grep 'set $port' ${sitefile})
|
||||
port=${port##* }; port=${port%;*}
|
||||
c=0; spc7=''; spct=$((${cw_spc7}-${#server})); until [ $c = ${spct} ]; do spc7="${spc7} "; c=`expr $c + 1`; done
|
||||
proxyhost="${scheme}://${server}:${port}"
|
||||
else
|
||||
type='HTTP'
|
||||
@@ -673,11 +665,9 @@ SITEINFO(){
|
||||
scheme=${scheme##* }; scheme=${scheme%;*}
|
||||
port=$(grep 'set $port' ${sitefile})
|
||||
port=${port##* }; port=${port%;*}
|
||||
c=0; spc7=''; spct=$((${cw_spc7}-${#server})); until [ $c = ${spct} ]; do spc7="${spc7} "; c=`expr $c + 1`; done
|
||||
proxyhost="${server}${spc7}:${port}"
|
||||
|
||||
else
|
||||
type='HTTP'
|
||||
proxyhost=''
|
||||
fi
|
||||
[ "$(grep '\#include conf.d/include/hsts-support.conf' ${sitefile})" != "" ] && hsts='-' || hsts='Yes'
|
||||
[ "$(grep '\#include conf.d/include/websocket-support.conf' ${sitefile})" != "" ] && wbskt='-' || wbskt='Yes'
|
||||
|
||||
Reference in New Issue
Block a user