Break when first hostname has been found

This commit is contained in:
Mirko Geissler committed 2016-07-05 09:49:26 +02:00
1 parent fc452e90d4
commit 9b28d80e95
1 file changed
+1
+1
View File
@@ -831,6 +831,7 @@ is_global_vhost_enabled() {
while read -r GLOBAL_VHOST; do while read -r GLOBAL_VHOST; do
if (is_valid_hostname "$GLOBAL_VHOST"); then if (is_valid_hostname "$GLOBAL_VHOST"); then
local GLOBAL_VHOSTS_ENABLED=true local GLOBAL_VHOSTS_ENABLED=true
break
fi fi
done <<< "$GLOBAL_VHOSTS" done <<< "$GLOBAL_VHOSTS"