Compare commits

...

12 Commits

Author SHA1 Message Date
Ben Meadors
fe8ae6237e Merge pull request #469 from marek22k/improve-argument-handling
Improve argument handling
2024-01-04 20:30:36 -06:00
github-actions
7908fda1cf bump version 2023-12-17 17:43:05 +00:00
github-actions
fe9a367553 Update protobuf submodule 2023-12-17 17:41:45 +00:00
github-actions
79d7dcc199 bump version 2023-12-13 01:04:29 +00:00
Ben Meadors
ddf2221797 2.2.16 Protos 2023-12-12 19:03:23 -06:00
github-actions
a6f9100520 bump version 2023-12-13 01:01:38 +00:00
Ben Meadors
36011da918 2.2.15 protos 2023-12-12 19:00:48 -06:00
Ben Meadors
882e160a32 Merge pull request #471 from marek22k/cjdns-beacon
Tunnel: Add overlay peer discovery to blocklist
2023-12-12 18:58:37 -06:00
github-actions
958edbfdb2 bump version 2023-12-13 00:58:02 +00:00
Marek Küthe
2464bcf414 Tunnel: Add overlay peer discovery to blocklist 2023-12-09 11:50:47 +00:00
Marek Küthe
b468a0c908 Tunnel: Check other arguments 2023-12-04 12:55:36 +00:00
Marek Küthe
de154e50ca Tunnel: Pass variable only if it has content.
Closes https://github.com/meshtastic/python/issues/468
2023-12-04 12:55:06 +00:00
6 changed files with 101 additions and 90 deletions

View File

@@ -771,7 +771,10 @@ def onConnected(interface):
if interface.noProto:
logging.warning(f"Not starting Tunnel - disabled by noProto")
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):
print(

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -49,6 +49,12 @@ class Tunnel:
if not iface:
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.subnetPrefix = subnet
@@ -63,6 +69,8 @@ class Tunnel:
self.udpBlacklist = {
1900, # SSDP
5353, # multicast DNS
9001, # Yggdrasil multicast discovery
64512, # cjdns beacon
}
"""A list of TCP services to block"""

View File

@@ -13,7 +13,7 @@ with open("README.md", "r") as fh:
# This call to setup() does all the work
setup(
name="meshtastic",
version="2.2.12",
version="2.2.16",
description="Python API & client shell for talking to Meshtastic devices",
long_description=long_description,
long_description_content_type="text/markdown",