mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-08-26 21:52:40 +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
|
from web.lib.validation import validate_b64hash
|
||||||
|
|
||||||
# determine approve hosts or not
|
# determine approve hosts or not
|
||||||
if args.approve:
|
if args.approve or config.as_bool('approve'):
|
||||||
approved = True
|
approved = True
|
||||||
else:
|
else:
|
||||||
approved = False
|
approved = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user