mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 13:40:19 +00:00
Compare commits
2 Commits
f5d77a1dfb
...
226004da94
Author | SHA1 | Date | |
---|---|---|---|
|
226004da94 | ||
|
47b358351f |
@ -44,6 +44,7 @@ class AutoInterface(Interface):
|
|||||||
|
|
||||||
PEERING_TIMEOUT = 7.5
|
PEERING_TIMEOUT = 7.5
|
||||||
|
|
||||||
|
ALL_IGNORE_IFS = ["lo0"]
|
||||||
DARWIN_IGNORE_IFS = ["awdl0", "llw0", "lo0", "en5"]
|
DARWIN_IGNORE_IFS = ["awdl0", "llw0", "lo0", "en5"]
|
||||||
ANDROID_IGNORE_IFS = ["dummy0", "lo", "tun0"]
|
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)
|
RNS.log(str(self)+" skipping Android system interface "+str(ifname), RNS.LOG_EXTREME)
|
||||||
elif ifname in self.ignored_interfaces:
|
elif ifname in self.ignored_interfaces:
|
||||||
RNS.log(str(self)+" ignoring disallowed interface "+str(ifname), RNS.LOG_EXTREME)
|
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:
|
else:
|
||||||
if len(self.allowed_interfaces) > 0 and not ifname in self.allowed_interfaces:
|
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)
|
RNS.log(str(self)+" ignoring interface "+str(ifname)+" since it was not allowed", RNS.LOG_EXTREME)
|
||||||
|
5
setup.py
5
setup.py
@ -22,6 +22,9 @@ else:
|
|||||||
pkg_name = "rns"
|
pkg_name = "rns"
|
||||||
requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces']
|
requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces']
|
||||||
|
|
||||||
|
excluded_modules = exclude=["tests.*", "tests"]
|
||||||
|
packages = setuptools.find_packages(exclude=excluded_modules)
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name=pkg_name,
|
name=pkg_name,
|
||||||
version=__version__,
|
version=__version__,
|
||||||
@ -31,7 +34,7 @@ setuptools.setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://reticulum.network/",
|
url="https://reticulum.network/",
|
||||||
packages=setuptools.find_packages(),
|
packages=packages,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
|
Loading…
Reference in New Issue
Block a user