From 5837bdad940723596e34b214a506c34a2a8e3fb9 Mon Sep 17 00:00:00 2001
From: Miguel Montes <miguel.montes@gmail.com>
Date: Wed, 24 Apr 2019 12:26:01 -0300
Subject: [PATCH] =?UTF-8?q?Cambio=20en=20la=20expresi=C3=B3n=20regular=20p?=
 =?UTF-8?q?ara=20procesar=20archivo=20/etc/hosts?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 scripts/hosts2ufw.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/hosts2ufw.py b/scripts/hosts2ufw.py
index f31a13c..6f825c1 100755
--- a/scripts/hosts2ufw.py
+++ b/scripts/hosts2ufw.py
@@ -9,7 +9,7 @@ ufw_delete = ufw_command + ["--force", "delete"]
 
 def read_hosts():
 	hosts = set()
-	pattern = re.compile(r"([0-9.:]+)\s+\w+-(sealer|gateway)")
+	pattern = re.compile(r"([0-9.:]+)\s+\S+-(sealer|gateway)")
 	with open("/etc/hosts") as file:
 		for line in file:
 			m = re.match(pattern,line)
-- 
GitLab