Compare commits

..

2 Commits

Author SHA1 Message Date
Mark Qvist
226004da94 Ignore lo0 in all cases. Fixes #237. 2023-03-07 16:43:10 +01:00
Mark Qvist
47b358351f Exclude tests from wheel. Fixes #241. 2023-03-07 16:31:31 +01:00
2 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,7 @@ class AutoInterface(Interface):
PEERING_TIMEOUT = 7.5
ALL_IGNORE_IFS = ["lo0"]
DARWIN_IGNORE_IFS = ["awdl0", "llw0", "lo0", "en5"]
ANDROID_IGNORE_IFS = ["dummy0", "lo", "tun0"]
@ -156,6 +157,8 @@ class AutoInterface(Interface):
RNS.log(str(self)+" skipping Android system interface "+str(ifname), RNS.LOG_EXTREME)
elif ifname in self.ignored_interfaces:
RNS.log(str(self)+" ignoring disallowed interface "+str(ifname), RNS.LOG_EXTREME)
elif ifname in AutoInterface.ALL_IGNORE_IFS:
RNS.log(str(self)+" skipping interface "+str(ifname), RNS.LOG_EXTREME)
else:
if len(self.allowed_interfaces) > 0 and not ifname in self.allowed_interfaces:
RNS.log(str(self)+" ignoring interface "+str(ifname)+" since it was not allowed", RNS.LOG_EXTREME)

View File

@ -22,6 +22,9 @@ else:
pkg_name = "rns"
requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces']
excluded_modules = exclude=["tests.*", "tests"]
packages = setuptools.find_packages(exclude=excluded_modules)
setuptools.setup(
name=pkg_name,
version=__version__,
@ -31,7 +34,7 @@ setuptools.setup(
long_description=long_description,
long_description_content_type="text/markdown",
url="https://reticulum.network/",
packages=setuptools.find_packages(),
packages=packages,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",