Skip to content

Commit

Permalink
scion.sh: fix IPv6 address bug in sciond-addr subcommand (#4341)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MrR0b0t14 authored Apr 24, 2023
1 parent 8b41109 commit 045c07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 045c07e

Please sign in to comment.