mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Enhance domain handling in certbot-new.py to support both string and set inputs for domains
This commit is contained in:
parent
12c3275303
commit
4ca6bd53e8
1 changed files with 5 additions and 2 deletions
|
|
@ -276,7 +276,10 @@ try:
|
|||
first_server = wildcards[0].lstrip("*.")
|
||||
domains = set(wildcards)
|
||||
else:
|
||||
domains = set(domains.split(" "))
|
||||
if isinstance(domains, str):
|
||||
domains = set(domains.split(" "))
|
||||
else:
|
||||
domains = set(domains)
|
||||
|
||||
certificate_block = None
|
||||
for block in certificate_blocks:
|
||||
|
|
@ -416,7 +419,7 @@ try:
|
|||
+ ("the propagation time will be the provider's default and " if data["challenge"] == "dns" else "")
|
||||
+ "the email will be the same as the first domain that created the group..."
|
||||
)
|
||||
WILDCARD_GENERATOR.extend(group, domains.split(" "), data["email"], data["staging"])
|
||||
WILDCARD_GENERATOR.extend(group, domains.split(" ") if isinstance(domains, str) else domains, data["email"], data["staging"])
|
||||
file_path = (f"{group}.{file_type}",)
|
||||
|
||||
# * Generating the credentials file
|
||||
|
|
|
|||
Loading…
Reference in a new issue