mirror of
https://github.com/chatmail/relay.git
synced 2026-05-16 03:24:48 +00:00
DNS: fix parsing
This commit is contained in:
@@ -173,7 +173,7 @@ def dns_cmd(args, out):
|
|||||||
if f" {typ} " in line:
|
if f" {typ} " in line:
|
||||||
domain, value = line.split(f" {typ} ")
|
domain, value = line.split(f" {typ} ")
|
||||||
current = dns.get(typ, domain.strip()[:-1])
|
current = dns.get(typ, domain.strip()[:-1])
|
||||||
if current != value:
|
if current != value.strip():
|
||||||
to_print.append(line)
|
to_print.append(line)
|
||||||
if " MX " in line:
|
if " MX " in line:
|
||||||
domain, typ, prio, value = line.split()
|
domain, typ, prio, value = line.split()
|
||||||
|
|||||||
Reference in New Issue
Block a user