Added environment variables for reconnect

This commit is contained in:
Ozzie Isaacs
2022-03-16 16:57:18 +01:00
parent 57cd8160a0
commit 034ab73ccc
4 changed files with 16 additions and 21 deletions
+5 -1
View File
@@ -84,10 +84,14 @@ if args.k == "":
# dry run updater
dry_run = args.d or None
# enable reconnect endpoint for docker database reconnect
reconnect_enable = args.r or os.environ.get("CALIBRE_RECONNECT", None)
# load covers from localhost
allow_localhost = args.l or None
allow_localhost = args.l or os.environ.get("CALIBRE_LOCALHOST", None)
# handle and check ip address argument
ip_address = args.i or None
if ip_address:
try:
# try to parse the given ip address with socket