mirror of
https://github.com/meshtastic/python.git
synced 2025-12-30 11:27:53 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe8ae6237e | ||
|
|
7908fda1cf | ||
|
|
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(
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
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.15",
|
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