mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-03 03:28:10 +00:00
Put ipv6 resolver address in square brackets
This commit is contained in:
@@ -12,7 +12,8 @@ log.basicConfig(stream=sys.stderr, level=args.get("LOG_LEVEL", "WARNING"))
|
|||||||
# Get the first DNS server
|
# Get the first DNS server
|
||||||
with open("/etc/resolv.conf") as handle:
|
with open("/etc/resolv.conf") as handle:
|
||||||
content = handle.read().split()
|
content = handle.read().split()
|
||||||
args["RESOLVER"] = content[content.index("nameserver") + 1]
|
resolver = content[content.index("nameserver") + 1]
|
||||||
|
args["RESOLVER"] = f"[{resolver}]" if ":" in resolver else resolver
|
||||||
|
|
||||||
args["ADMIN_ADDRESS"] = system.get_host_address_from_environment("ADMIN", "admin")
|
args["ADMIN_ADDRESS"] = system.get_host_address_from_environment("ADMIN", "admin")
|
||||||
args["ANTISPAM_WEBUI_ADDRESS"] = system.get_host_address_from_environment("ANTISPAM_WEBUI", "antispam:11334")
|
args["ANTISPAM_WEBUI_ADDRESS"] = system.get_host_address_from_environment("ANTISPAM_WEBUI", "antispam:11334")
|
||||||
|
|||||||
Reference in New Issue
Block a user