From fe1b4096ffba3631709486e358c7eb043e4137c7 Mon Sep 17 00:00:00 2001 From: keikari <34790748+keikari@users.noreply.github.com> Date: Fri, 15 May 2020 20:05:07 +0300 Subject: [PATCH] Update examples to working ones (#1285) Original lines didn't work for me. But api call found in documentation seems to do wanted thing. Cli command I figured out with few tries. Tested with latest LBRY downloaded from AUR. --- content/faq/how-to-change-port.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/faq/how-to-change-port.md b/content/faq/how-to-change-port.md index 5c7cd9a0..1ffddd2e 100644 --- a/content/faq/how-to-change-port.md +++ b/content/faq/how-to-change-port.md @@ -21,8 +21,9 @@ To change the port once during runtime, set the LBRY_PEER_PORT env variable. Her Once the daemon is running, you can change the port permanently by using the following [api](/api) call - curl 'http://localhost:5279' --data '{"method":"settings_set", "params":{"tcp_port":}}' + curl -d'{"method": "settings_set", "params": {"key": "tcp_port", "value": }}' http://localhost:5279/ + or via cli command - lbrynet settings_set --tcp_port 3334 + lbrynet settings set tcp_port 3334