mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-09 13:24:22 +00:00
py-i2phosts-injector: use config value for "approved"
This commit is contained in:
parent
a3a4d1ef51
commit
1e4933624a
@ -44,7 +44,7 @@ from web.lib.validation import validate_hostname
|
||||
from web.lib.validation import validate_b64hash
|
||||
|
||||
# determine approve hosts or not
|
||||
if args.approve:
|
||||
if args.approve or config.as_bool('approve'):
|
||||
approved = True
|
||||
else:
|
||||
approved = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user