Don't download geolite db in offline mode

This commit is contained in:
shortcutme 2019-05-30 04:27:40 +02:00
parent 815fe02c83
commit c63215c992
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -560,6 +560,9 @@ class UiWebsocketPlugin(object):
import shutil
from util import helper
if config.offline:
return False
self.log.info("Downloading GeoLite2 City database...")
self.cmd("progress", ["geolite-info", _["Downloading GeoLite2 City database (one time only, ~20MB)..."], 0])
db_urls = [