Compare commits

...

1 Commits
2.0.1 ... 2.0.2

Author SHA1 Message Date
Ben Meadors
83776ceec5 Fix url 2022-11-02 21:20:25 -05:00

View File

@@ -336,14 +336,14 @@ class Node:
some_bytes = channelSet.SerializeToString()
s = base64.urlsafe_b64encode(some_bytes).decode('ascii')
s = s.replace("=", "").replace("+", "-").replace("/", "_")
return f"https://www.meshtastic.org/e/#{s}"
return f"https://meshtastic.org/e/#{s}"
def setURL(self, url):
"""Set mesh network URL"""
if self.localConfig is None:
our_exit("Warning: No Config has been read")
# URLs are of the form https://www.meshtastic.org/d/#{base64_channel_set}
# URLs are of the form https://meshtastic.org/d/#{base64_channel_set}
# Split on '/#' to find the base64 encoded channel settings
splitURL = url.split("/#")
b64 = splitURL[-1]