Commit f972a6f0 authored by mdj33's avatar mdj33 Committed by 33cn

get correct external ip

parent f8aabc9d
......@@ -489,6 +489,10 @@ function main() {
### test cases ###
ip=$(${CLI} net info | jq -r ".externalAddr")
ip=$(echo "$ip" | cut -d':' -f 1)
if [ "$ip" == "127.0.0.1" ]; then
ip=$(${CLI} net info | jq -r ".localAddr")
ip=$(echo "$ip" | cut -d':' -f 1)
fi
dapp_run test "${ip}"
### rpc test ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment