mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
Include GeoIP database for country look-ups
This commit is contained in:
parent
58bca167b3
commit
e64595120e
@ -170,6 +170,10 @@ class Core(
|
|||||||
# Load the session state if available
|
# Load the session state if available
|
||||||
self.load_session_state()
|
self.load_session_state()
|
||||||
|
|
||||||
|
# Load the GeoIP DB for country look-ups
|
||||||
|
self.session.load_country_db(
|
||||||
|
pkg_resources.resource_filename("deluge", os.path.join("data", "GeoIP.dat")))
|
||||||
|
|
||||||
# Set the user agent
|
# Set the user agent
|
||||||
self.settings = lt.session_settings()
|
self.settings = lt.session_settings()
|
||||||
self.settings.user_agent = "Deluge %s" % deluge.common.get_version()
|
self.settings.user_agent = "Deluge %s" % deluge.common.get_version()
|
||||||
|
BIN
deluge/data/GeoIP.dat
Normal file
BIN
deluge/data/GeoIP.dat
Normal file
Binary file not shown.
1
setup.py
1
setup.py
@ -311,6 +311,7 @@ setup(
|
|||||||
"data/pixmaps/*.ico",
|
"data/pixmaps/*.ico",
|
||||||
"data/pixmaps/flags/*.png",
|
"data/pixmaps/flags/*.png",
|
||||||
"data/revision",
|
"data/revision",
|
||||||
|
"data/GeoIP.dat",
|
||||||
"plugins/*.egg",
|
"plugins/*.egg",
|
||||||
"i18n/*.pot",
|
"i18n/*.pot",
|
||||||
"i18n/*/LC_MESSAGES/*.mo",
|
"i18n/*/LC_MESSAGES/*.mo",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user