Added debug

This commit is contained in:
Anton Hvornum 2019-11-29 13:56:42 +01:00
parent 30e45d57a1
commit a66c2436ee
1 changed files with 2 additions and 0 deletions

View File

@ -811,6 +811,8 @@ def setup_args_defaults(args, *positionals, **kwargs):
if get_default_gateway_linux():
ip = get_external_ip()
country = guess_country(ip)
print(ip)
print(country)
args['country'] = 'all' if not country else country
if not 'localtime' in args: args['localtime'] = 'Europe/Stockholm' if args['country'] == 'SE' else 'GMT+0' # TODO: Arbitrary for now