1
0
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:
Hidden Z 2010-10-30 18:09:22 +00:00
parent a3a4d1ef51
commit 1e4933624a

View File

@ -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