浏览代码

* Quitar localhost

Guzmán Castanedo Villalba 6 年之前
父节点
当前提交
24b5fc5819
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      check-virtualhosts

+ 1 - 1
check-virtualhosts

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