mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix shenanigans when SERVER_NAME is empty
This commit is contained in:
parent
3e51cc78f0
commit
c39793a31a
1 changed files with 2 additions and 2 deletions
|
|
@ -723,8 +723,8 @@ class Database:
|
|||
}
|
||||
)
|
||||
else:
|
||||
if config.get("SERVER_NAME", "") != "" and not (session.query(Services).with_entities(Services.id).filter_by(id=config["SERVER_NAME"].split(" ")[0]).first()):
|
||||
to_put.append(Services(id=config["SERVER_NAME"].split(" ")[0], method=method))
|
||||
if not (session.query(Services).with_entities(Services.id).filter_by(id=config.get("SERVER_NAME", "www.example.com").split(" ")[0]).first()):
|
||||
to_put.append(Services(id=config.get("SERVER_NAME", "www.example.com").split(" ")[0], method=method))
|
||||
|
||||
for key, value in config.items():
|
||||
suffix = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue