From 095a69f87959e4f77e06040845154a8e824c809d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 11 Nov 2023 19:44:06 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index e7ff7107..9ac39ec5 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -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'