mirror of https://gitlab.com/bashrc2/epicyon
Remove default function argument
parent
e0d1a9ec81
commit
7acc88e848
|
@ -584,6 +584,7 @@ class EpicyonServer(ThreadingHTTPServer):
|
||||||
thrNewswireWatchdog = None
|
thrNewswireWatchdog = None
|
||||||
thrFederatedSharesWatchdog = None
|
thrFederatedSharesWatchdog = None
|
||||||
thrFederatedBlocksDaemon = None
|
thrFederatedBlocksDaemon = None
|
||||||
|
qrcode_scale = 6
|
||||||
|
|
||||||
def handle_error(self, request, client_address):
|
def handle_error(self, request, client_address):
|
||||||
# surpress connection reset errors
|
# surpress connection reset errors
|
||||||
|
@ -1124,12 +1125,14 @@ def run_daemon(no_of_books: int,
|
||||||
httpd.domain = domain
|
httpd.domain = domain
|
||||||
httpd.port = port
|
httpd.port = port
|
||||||
httpd.domain_full = get_full_domain(domain, port)
|
httpd.domain_full = get_full_domain(domain, port)
|
||||||
|
httpd.qrcode_scale = 6
|
||||||
if onion_domain:
|
if onion_domain:
|
||||||
save_domain_qrcode(base_dir, 'http', onion_domain)
|
save_domain_qrcode(base_dir, 'http', onion_domain, httpd.qrcode_scale)
|
||||||
elif i2p_domain:
|
elif i2p_domain:
|
||||||
save_domain_qrcode(base_dir, 'http', i2p_domain)
|
save_domain_qrcode(base_dir, 'http', i2p_domain, httpd.qrcode_scale)
|
||||||
else:
|
else:
|
||||||
save_domain_qrcode(base_dir, http_prefix, httpd.domain_full)
|
save_domain_qrcode(base_dir, http_prefix, httpd.domain_full,
|
||||||
|
httpd.qrcode_scale)
|
||||||
clear_person_qrcodes(base_dir)
|
clear_person_qrcodes(base_dir)
|
||||||
httpd.http_prefix = http_prefix
|
httpd.http_prefix = http_prefix
|
||||||
httpd.debug = debug
|
httpd.debug = debug
|
||||||
|
|
|
@ -11,7 +11,7 @@ import pyqrcode
|
||||||
|
|
||||||
|
|
||||||
def save_domain_qrcode(base_dir: str, http_prefix: str,
|
def save_domain_qrcode(base_dir: str, http_prefix: str,
|
||||||
domain_full: str, scale: int = 6) -> None:
|
domain_full: str, scale: int) -> None:
|
||||||
"""Saves a qrcode image for the domain name
|
"""Saves a qrcode image for the domain name
|
||||||
This helps to transfer onion or i2p domains to a mobile device
|
This helps to transfer onion or i2p domains to a mobile device
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue