mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 22:39:18 -04:00
Allow port number to be specified with tcp hostname
This commit is contained in:
1 parent
584a14f578
commit
bf904c6906
1 file changed
+7
-1
@@ -1155,8 +1155,14 @@ def common():
|
||||
)
|
||||
elif args.host:
|
||||
try:
|
||||
if ":" in args.host:
|
||||
tcp_hostname, tcp_port = args.host.split(':')
|
||||
else:
|
||||
tcp_hostname = args.host
|
||||
tcp_port = 4403
|
||||
client = meshtastic.tcp_interface.TCPInterface(
|
||||
args.host,
|
||||
tcp_hostname,
|
||||
portNumber=tcp_port,
|
||||
debugOut=logfile,
|
||||
noProto=args.noproto,
|
||||
noNodes=args.no_nodes,
|
||||
|
||||
Reference in new issue
Block a user