LNP-WG / lnp-node

Lightning network protocol daemon (suitable for generalized Lightning Network)
MIT License
145 stars 40 forks source link

Daemon does not use port parameter #59

Closed crisdut closed 1 year ago

crisdut commented 1 year ago

Description

The peerd daemon uses only the default port instead of the port number parameter.

Steps to Reproduce

  1. Launch lnpd without --threaded argument.
  2. Run lnp-cli listen with --port argument.

Expected: The lnpd launch peerd with defined port argument. Current: the microservice::supervisor try spawn peerd with port 9999 and causes rust panic (Unable to bind to Lightning network peer socket: Os { code: 98, kind: AddrInUse, message: "Address already in use" })

This PR fixies this.