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.
This commit is contained in:
keikari 2020-05-15 20:05:07 +03:00 committed by GitHub
parent 347d1e2511
commit fe1b4096ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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":<port-num>}}'
curl -d'{"method": "settings_set", "params": {"key": "tcp_port", "value": <port-num>}}' http://localhost:5279/
or via cli command
lbrynet settings_set --tcp_port 3334
lbrynet settings set tcp_port 3334