From 045c07ea751541984aee10c4bdfdb8e305dfe1f2 Mon Sep 17 00:00:00 2001 From: Antonio Battipaglia <83505887+MrR0b0t14@users.noreply.github.com> Date: Mon, 24 Apr 2023 09:21:21 +0200 Subject: [PATCH] scion.sh: fix IPv6 address bug in sciond-addr subcommand (#4341) The scion.sh sciond-addr command was returning an invalid address for IPv6 setups, resulting in "too many colons address" error when used as the `--sciond` parameter of tool invocations. Fixed by wrapping the IP in brackets before appending the port. --- scion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scion.sh b/scion.sh index e4766dfb3f..371f410274 100755 --- a/scion.sh +++ b/scion.sh @@ -55,7 +55,7 @@ cmd_sciond-addr() { jq -r 'to_entries | map(select(.key | match("'"$1"'";"i"))) | if length != 1 then error("No unique match for '"$1"'") else .[0] end | - "\(.value):30255"' gen/sciond_addresses.json + "[\(.value)]:30255"' gen/sciond_addresses.json } run_jaeger() {