fix RPC address if it's not localhost

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-04-29 14:56:39 +02:00
parent 27ff1d257b
commit f76e6f3779
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
- name: Geth | Get enode address
uri:
url: http://localhost:{{ geth_rpc_port }}/
url: http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/
method: POST
body: '{"id": 1, "method": "admin_nodeInfo"}'
body_format: json

View File

@ -2,7 +2,7 @@
# vim: set ft=sh:
set -euo pipefail
URL="http://localhost:{{ geth_rpc_port }}/"
URL="http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/"
METHOD="$1"
shift