Commit a4c3ba74 authored by Moul's avatar Moul
Browse files

[mod] #7: Generate a new endpoint formats from Silkaj to process in DuniterPy

parent 48856b6b
......@@ -112,6 +112,8 @@ class EndPoint(object):
if ep["domain"].startswith("[") and ep["domain"].endswith("]"):
ep["domain"] = ep["domain"][1:-1]
self.ep = ep
api = "BMAS" if ep["port"] == "443" else "BASIC_MERKLED_API"
self.BMA_ENDPOINT = " ".join([api, ep["domain"], ep["port"]])
def parse_endpoint(rep):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment