mirror of
https://github.com/meshtastic/python.git
synced 2026-01-01 12:27:59 -05:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe8ae6237e | ||
|
|
7908fda1cf | ||
|
|
fe9a367553 | ||
|
|
79d7dcc199 | ||
|
|
ddf2221797 | ||
|
|
a6f9100520 | ||
|
|
36011da918 | ||
|
|
882e160a32 | ||
|
|
958edbfdb2 | ||
|
|
2464bcf414 | ||
|
|
b468a0c908 | ||
|
|
de154e50ca |
@@ -771,7 +771,10 @@ def onConnected(interface):
|
|||||||
if interface.noProto:
|
if interface.noProto:
|
||||||
logging.warning(f"Not starting Tunnel - disabled by noProto")
|
logging.warning(f"Not starting Tunnel - disabled by noProto")
|
||||||
else:
|
else:
|
||||||
tunnel.Tunnel(interface, subnet=args.tunnel_net)
|
if args.tunnel_net:
|
||||||
|
tunnel.Tunnel(interface, subnet=args.tunnel_net)
|
||||||
|
else:
|
||||||
|
tunnel.Tunnel(interface)
|
||||||
|
|
||||||
if args.ack or (args.dest != BROADCAST_ADDR and waitForAckNak):
|
if args.ack or (args.dest != BROADCAST_ADDR and waitForAckNak):
|
||||||
print(
|
print(
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -49,6 +49,12 @@ class Tunnel:
|
|||||||
if not iface:
|
if not iface:
|
||||||
raise Exception("Tunnel() must have a interface")
|
raise Exception("Tunnel() must have a interface")
|
||||||
|
|
||||||
|
if not subnet:
|
||||||
|
raise Exception("Tunnel() must have a subnet")
|
||||||
|
|
||||||
|
if not netmask:
|
||||||
|
raise Exception("Tunnel() must have a netmask")
|
||||||
|
|
||||||
self.iface = iface
|
self.iface = iface
|
||||||
self.subnetPrefix = subnet
|
self.subnetPrefix = subnet
|
||||||
|
|
||||||
@@ -63,6 +69,8 @@ class Tunnel:
|
|||||||
self.udpBlacklist = {
|
self.udpBlacklist = {
|
||||||
1900, # SSDP
|
1900, # SSDP
|
||||||
5353, # multicast DNS
|
5353, # multicast DNS
|
||||||
|
9001, # Yggdrasil multicast discovery
|
||||||
|
64512, # cjdns beacon
|
||||||
}
|
}
|
||||||
|
|
||||||
"""A list of TCP services to block"""
|
"""A list of TCP services to block"""
|
||||||
|
|||||||
Submodule protobufs updated: c845b7848e...c1e179ecfd
2
setup.py
2
setup.py
@@ -13,7 +13,7 @@ with open("README.md", "r") as fh:
|
|||||||
# This call to setup() does all the work
|
# This call to setup() does all the work
|
||||||
setup(
|
setup(
|
||||||
name="meshtastic",
|
name="meshtastic",
|
||||||
version="2.2.12",
|
version="2.2.16",
|
||||||
description="Python API & client shell for talking to Meshtastic devices",
|
description="Python API & client shell for talking to Meshtastic devices",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|||||||
Reference in New Issue
Block a user