Skip to content

Commit

Permalink
fix issue 455 (#592)
Browse files Browse the repository at this point in the history
#455

Co-authored-by: Petteri Stenius <[email protected]>
  • Loading branch information
psteniusubi and psteniusubi authored Nov 5, 2023
1 parent ef22b07 commit 0d39731
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keri/app/indirecting.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ def setupWitness(hby, alias="witness", mbx=None, aids=None, tcpPort=5631, httpPo
app.add_route("/receipts", receiptEnd)

server = createHttpServer(httpPort, app, keypath, certpath, cafilepath)
if not server.reopen():
raise RuntimeError(f"cannot create http server on port {httpPort}")
httpServerDoer = http.ServerDoer(server=server)

# setup doers
regDoer = basing.BaserDoer(baser=verfer.reger)

if tcpPort is not None:
server = serving.Server(host="", port=tcpPort)
if not server.reopen():
raise RuntimeError(f"cannot create tcp server on port {tcpPort}")
serverDoer = serving.ServerDoer(server=server)

directant = directing.Directant(hab=hab, server=server, verifier=verfer)
Expand Down

0 comments on commit 0d39731

Please sign in to comment.