Explorar el Código

* Quitar localhost

Guzmán Castanedo Villalba hace 5 años
padre
commit
24b5fc5819
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      check-virtualhosts

+ 1 - 1
check-virtualhosts

@@ -38,7 +38,7 @@ getVirtualHosts() {
 			continue
 			continue
 		fi
 		fi
 		for hostname in $linea;do
 		for hostname in $linea;do
-			if [ $hostname != "server_name" ];then
+			if [ $hostname != "server_name" ] && [ $hostname != "localhost" ];then
 				hostnames[$cont]=$(echo "$hostname" | sed 's/;//g')
 				hostnames[$cont]=$(echo "$hostname" | sed 's/;//g')
 				cont=$((cont+1))
 				cont=$((cont+1))
 			fi
 			fi