mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Include GeoIP database for country look-ups
This commit is contained in:
parent
34d34b785c
commit
a0f90acfc8
4 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Deluge 0.9.10 - "1.0.0_RC10" (In Development)
|
||||||
|
Core:
|
||||||
|
* Include GeoIP database for country look-ups
|
||||||
|
|
||||||
Deluge 0.9.09 - "1.0.0_RC9" (15 September 2008)
|
Deluge 0.9.09 - "1.0.0_RC9" (15 September 2008)
|
||||||
Core:
|
Core:
|
||||||
* Bug fixes in libtorrent including a crash when the tracker doesn't
|
* Bug fixes in libtorrent including a crash when the tracker doesn't
|
||||||
|
|
|
@ -213,6 +213,10 @@ class Core(
|
||||||
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()
|
||||||
|
|
||||||
|
# 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 session settings
|
# Set session settings
|
||||||
self.settings.lazy_bitfields = 1
|
self.settings.lazy_bitfields = 1
|
||||||
self.settings.send_redundant_have = True
|
self.settings.send_redundant_have = True
|
||||||
|
|
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…
Add table
Add a link
Reference in a new issue