If you or any others wanna get this enabled, then i've threw together some command-lines doing these before-mentioned changes automatically, by e.g. copy/pasting commands into a file and running 'sh filename' in a terminal. I tested it working in my ubuntu 21.04 VM using deluge 2.0.3 package, but I could only check patches applied correctly and not the actual ipv6 geoip support, because have no ipv6 on my connection, and when adding this to the unofficial installer then I tested it working through the terredo ipv4-to-ipv6 built-in layer, but don't know how enable such on linux and to lazy to look into it honestly.
If during patching some files shows failing/missing, then that's because you don't have that particular deluge component installed e.g. deluge-console and/or deluge-web etc, but irrelevant since you don't use it anyway, and hence I intentionally made 'patch' skip such.
I edited/fixed-up the patches and uploaded them to free webhost, as I only implemented this before for deluge-dev builds for the unofficial installer and there where incompatible changes in-between dev and stable, breaking several of them.
To revert back to default if wanted, then either run the revert script or alternativelly just uninstall and reinstall deluge.
Should work on other than ubuntu too, i.e. everywhere using deluge 2.0.3 pretty much.
I used wget instead of curl since that was default installed on ubuntu and not curl.
Apply:
Code: Select all
sudo find /usr -type d -path "*/python3*/*/deluge" -exec sh -c "wget -O- https://paste.c-net.org/WondrousProperty | sudo patch -f -p2 --no-backup-if-mismatch -d {}" \;
sudo find /usr -type d -path "*/python3*/*/deluge" -exec sh -c "wget -O- https://paste.c-net.org/SpiderVersion | sudo patch -f -p2 --no-backup-if-mismatch -d {}" \;
sudo find /usr -type d -path "*/python3*/*/deluge/core" -exec sh -c "wget -O- https://github.com/mhertz/deluge2/raw/master/deluge-build/listen.patch | sudo patch -f -p1 --no-backup-if-mismatch -d {}" \;
Revert:
Code: Select all
sudo find /usr -type d -path "*/python3*/*/deluge/core" -exec sh -c "wget -O- https://github.com/mhertz/deluge2/raw/master/deluge-build/listen.patch | sudo patch -f -R -p1 --no-backup-if-mismatch -d {}" \;
sudo find /usr -type d -path "*/python3*/*/deluge" -exec sh -c "wget -O- https://paste.c-net.org/SpiderVersion | sudo patch -f -R -p2 --no-backup-if-mismatch -d {}" \;
sudo find /usr -type d -path "*/python3*/*/deluge" -exec sh -c "wget -O- https://paste.c-net.org/WondrousProperty | sudo patch -f -R -p2 --no-backup-if-mismatch -d {}" \;
Edit: Tested working also for actual ipv6 geoip functionality now(and ipv6 in general i.e. bind/announce also to/from IPv6 in addition to IPv4, as otherwise not done on libtorrent 1.2.x without this). I felt bad not testing it properly so looked into how emulate ipv6 on linux so could test it, and that was easy i.e. simply running 'sudo apt-get install miredo' and restart deluge.