From 442657d3229b38262186ea1b8e352fb75ad91dc9 Mon Sep 17 00:00:00 2001 From: Minoplhy Date: Thu, 12 Aug 2021 17:20:30 +0700 Subject: [PATCH] Regex Fixing round 3 --- to-rpz/host_rpz_argv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to-rpz/host_rpz_argv.py b/to-rpz/host_rpz_argv.py index def6518..d33d8c8 100644 --- a/to-rpz/host_rpz_argv.py +++ b/to-rpz/host_rpz_argv.py @@ -15,7 +15,7 @@ with open(infile) as f: file[i] = re.sub('^:: ', '', file[i]) file[i] = re.sub('^::1 ', '' ,file[i]) file[i] = re.sub('^127.0.0.1', '', file[i]) - file[i] = re.sub('^0.0.0.0', '', file[i]) + file[i] = re.sub('^0.0.0.0 0.0.0.0', '', file[i]) with open(infile, 'w') as f1: f1.writelines(["%s\n" % item for item in file]) f.close()