summaryrefslogtreecommitdiffstats
path: root/packaging/win
diff options
context:
space:
mode:
authortbkizle <tbkizle@gmail.com>2020-02-13 06:13:44 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2022-01-30 17:13:27 +0100
commit540d557cb2163c41af894ee252cc677d01887376 (patch)
tree1e03424802944dde5d6cab4f2278173d39fff9ec /packaging/win
parent[Tests] fix/enable most ui tests on Windows (diff)
downloaddeluge-540d557cb2163c41af894ee252cc677d01887376.tar.xz
deluge-540d557cb2163c41af894ee252cc677d01887376.zip
[Common] Add is_interface to validate network interfaces
Libtorrent now supports interface names instead of just IP address so add new common functions to validate user input. * Added is_interface that will verify if a libtorrent interface of name or IP address. * Added is_interface_name to verify that the name supplied is a valid network interface name in the operating system. On Windows sock.if_nameindex() is only supported on 3.8+ and does not return a uuid (required by libtorrent) so use ifaddr package. Using git commit version for ifaddr due to adapter name decode bug in v0.1.7. On other OSes attempt to use stdlib and fallback to ifaddr if installed otherwiser return True. * Added tests for is_interface & is_interface_name * Updated UIs with change from address to interface * Updated is_ipv6 and is_ipv4 to used inet_pton; now supported on Windows. Ref: https://github.com/pydron/ifaddr/pull/32 Closes: https://github.com/deluge-torrent/deluge/pull/338
Diffstat (limited to 'packaging/win')
-rw-r--r--packaging/win/delugewin.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/win/delugewin.spec b/packaging/win/delugewin.spec
index f79f041b1..9dadca244 100644
--- a/packaging/win/delugewin.spec
+++ b/packaging/win/delugewin.spec
@@ -6,7 +6,7 @@ from PyInstaller.utils.hooks import collect_all, collect_submodules, copy_metada
datas = []
binaries = []
-hiddenimports = ['pygame']
+hiddenimports = ['pygame','ifaddr']
# Collect Meta Data
datas += copy_metadata('deluge', recursive=True)