Skip to content

Commit

Permalink
fix: utxorpc listener address/port config (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Apr 11, 2024
1 parent 58b94f5 commit 6a6112e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utxorpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Start(cfg *config.Config) error {
buildPath, buildHandler := buildconnect.NewLedgerStateServiceHandler(&ledgerStateServiceServer{})
mux.Handle(buildPath, buildHandler)
err := http.ListenAndServe(
fmt.Sprintf("%s:%d", cfg.Api.ListenAddress, cfg.Api.ListenPort),
fmt.Sprintf("%s:%d", cfg.Utxorpc.ListenAddress, cfg.Utxorpc.ListenPort),
// Use h2c so we can serve HTTP/2 without TLS
h2c.NewHandler(mux, &http2.Server{}),
)
Expand Down

0 comments on commit 6a6112e

Please sign in to comment.