Correctly handle missing ADVERTISE_ADDRESS
This commit is contained in:
parent
9c7c714606
commit
f5024edaec
@ -81,7 +81,7 @@ AUTHORITY_ORGANIZATION = os.getenv("AUTHORITY_ORGANIZATION")
|
|||||||
AUTHORITY_LIFETIME_DAYS = 20 * 365
|
AUTHORITY_LIFETIME_DAYS = 20 * 365
|
||||||
|
|
||||||
# Advertise following IP addresses via DNS record
|
# Advertise following IP addresses via DNS record
|
||||||
ADVERTISE_ADDRESS = os.getenv("ADVERTISE_ADDRESS", "").split(",")
|
ADVERTISE_ADDRESS = [j for j in os.getenv("ADVERTISE_ADDRESS", "").split(",") if j]
|
||||||
if not ADVERTISE_ADDRESS:
|
if not ADVERTISE_ADDRESS:
|
||||||
ADVERTISE_ADDRESS = set()
|
ADVERTISE_ADDRESS = set()
|
||||||
for fam, _, _, _, addrs in socket.getaddrinfo(FQDN, None):
|
for fam, _, _, _, addrs in socket.getaddrinfo(FQDN, None):
|
||||||
|
Loading…
Reference in New Issue
Block a user