diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index e909ff67d..b72625b45 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -352,7 +352,7 @@ mw_common_proxy(){ if [ "$LOCAL_ADDR" != "common" ];then ChooseProxyURL - if [ "$DOMAIN" != "https://" ];then + if [ "$HTTP_PREFIX" != "https://" ];then DOMAIN=`echo $HTTP_PREFIX | sed 's|https://||g'` DOMAIN=`echo $DOMAIN | sed 's|/||g'` ping -c 3 $DOMAIN > /dev/null 2>&1