Browse Source

API always allow 127.0.0.1 and is hard coded

Jaap Marcus 5 years ago
parent
commit
9f0231cf9a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -1646,7 +1646,7 @@ fi
 
 if [ "$api" = "yes" ]; then
     echo "API='yes'" >> $HESTIA/conf/hestia.conf
-    echo "API_ALLOWED_IP='127.0.0.1'" >> $HESTIA/conf/hestia.conf
+    echo "API_ALLOWED_IP=''" >> $HESTIA/conf/hestia.conf
 else
     $HESTIA/bin/v-change-sys-api disable
 fi

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -1671,7 +1671,7 @@ fi
 
 if [ "$api" = "yes" ]; then
     echo "API='yes'" >> $HESTIA/conf/hestia.conf
-    echo "API_ALLOWED_IP='127.0.0.1'" >> $HESTIA/conf/hestia.conf
+    echo "API_ALLOWED_IP=''" >> $HESTIA/conf/hestia.conf
 else
     $HESTIA/bin/v-change-sys-api disable
 fi