Browse Source

Revert ipv6 support changes

Jaap Marcus 2 years ago
parent
commit
f1427238e8
2 changed files with 2 additions and 3 deletions
  1. 1 1
      bin/v-change-sys-port
  2. 1 2
      src/deb/nginx/nginx.conf

+ 1 - 1
bin/v-change-sys-port

@@ -56,7 +56,7 @@ check_hestia_demo_mode
 
 
 # Get original port
 # Get original port
 LISTEN_ROWS=$(cat ${NGINX_CONFIG} | grep -c "listen")
 LISTEN_ROWS=$(cat ${NGINX_CONFIG} | grep -c "listen")
-ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | sed 's/#IPV4[ \t\listen[ \t][^0-9]*//g' | sed 's/[^0-9]*//g')
+ORIGINAL_PORT=$(cat ${NGINX_CONFIG} | grep -m1 "listen" | sed 's/[^0-9]*//g')
 
 
 # Check if port is different to nginx.conf
 # Check if port is different to nginx.conf
 if [ "$ORIGINAL_PORT" = "$PORT" ]; then
 if [ "$ORIGINAL_PORT" = "$PORT" ]; then

+ 1 - 2
src/deb/nginx/nginx.conf

@@ -115,8 +115,7 @@ http {
 
 
 	# Vhost
 	# Vhost
 	server {
 	server {
-#IPV4		listen              8083 ssl;
-#IPV6		listen              [::]:8083 ssl;
+		listen              8083 ssl;
 		server_name         _;
 		server_name         _;
 		root                /usr/local/hestia/web;
 		root                /usr/local/hestia/web;
 		# Fix error "The plain HTTP request was sent to HTTPS port"
 		# Fix error "The plain HTTP request was sent to HTTPS port"