diff --git a/CHANGELOG.md b/CHANGELOG.md index dc1030ae3..53a716574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -191,7 +191,7 @@ This release named by Matt Morehouse. - JSON-RPC: `listconfigs` now has `configs` subobject with more information about each config option. ([#6243]) - Config: `--regtest` option as alias for `--network=regtest` ([#6243]) - Config: `accept-htlc-tlv-type` (replaces awkward-to-use `accept-htlc-tlv-types`) ([#6243]) - - Config: `bind=ws:...` to explicitly listen on a websocket. ([#6173]) + - Config: `bind-addr=ws:...` to explicitly listen on a websocket. ([#6173]) - Config: `bind` can now take `dns:` prefix to advertize DNS records. ([#6173]) - Plugins: `sendpay` now allows self-payment of invoices, by specifying an empty route. ([#6399]) - Plugins: plugins can subscribe to all notifications using "*". ([#6347]) @@ -233,7 +233,7 @@ Note: You should always set `allow-deprecated-apis=false` to test for changes. - JSON-RPC: `listconfigs` direct fields, use `configs` sub-object and `set`, `value_bool`, `value_str`, `value_int`, or `value_msat` fields. ([#6243]) - Config: boolean plugin options set to `1` or `0` (use `true` and `false` like non-plugin options). ([#6243]) - Config: `accept-htlc-tlv-types` (use `accept-htlc-tlv-type` multiple times) ([#6243]) - - Config: `experimental-websocket-port`: use `--bind=ws::`. ([#6173]) + - Config: `experimental-websocket-port`: use `--bind-addr=ws::`. ([#6173]) - Config: bind-addr=xxx.onion and addr=xxx.onion, use announce-addr=xxx.onion (which was always equivalent). ([#6173]) - Config: addr=/socketpath, use listen=/socketpath (which was always equivalent). ([#6173]) - Config: `announce-addr-dns`; use `--bind-addr=dns:ADDR` for finer control. ([#6173]) diff --git a/doc/lightningd-config.5.md b/doc/lightningd-config.5.md index 8a039ac1d..414c05987 100644 --- a/doc/lightningd-config.5.md +++ b/doc/lightningd-config.5.md @@ -762,7 +762,8 @@ connections on that port, on any IPv4 and IPv6 addresses you listen to ([bolt][bolt] #891). The normal protocol is expected to be sent over WebSocket binary frames once the connection is upgraded. - You should use `bind=ws::` instead to create a WebSocket listening port. + You should use `bind-addr=ws::` instead to create a WebSocket listening port. + see [Networking options](getting-started/getting-started/configuration.md#networking-options) * **experimental-peer-storage** diff --git a/lightningd/options.c b/lightningd/options.c index dddd5d736..9610903d9 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -1162,7 +1162,7 @@ static char *opt_set_websocket_port(const char *arg, struct lightningd *ld) char *err; if (!ld->deprecated_apis) - return "--experimental-websocket-port been deprecated, use --bind=ws:..."; + return "--experimental-websocket-port been deprecated, use --bind-addr=ws:..."; err = opt_set_u32(arg, &port); if (err)