fix RPC address if it's not localhost
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
27ff1d257b
commit
f76e6f3779
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
- name: Geth | Get enode address
|
- name: Geth | Get enode address
|
||||||
uri:
|
uri:
|
||||||
url: http://localhost:{{ geth_rpc_port }}/
|
url: http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/
|
||||||
method: POST
|
method: POST
|
||||||
body: '{"id": 1, "method": "admin_nodeInfo"}'
|
body: '{"id": 1, "method": "admin_nodeInfo"}'
|
||||||
body_format: json
|
body_format: json
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# vim: set ft=sh:
|
# vim: set ft=sh:
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
URL="http://localhost:{{ geth_rpc_port }}/"
|
URL="http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/"
|
||||||
|
|
||||||
METHOD="$1"
|
METHOD="$1"
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in New Issue