mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
simulation: Switch externalAddress config parsing to jq
This commit is contained in:
committed by
Fintan Halpenny
parent
d648892009
commit
ac6759b74b
@@ -57,7 +57,7 @@ import (
|
||||
# We only do this for seeds and bootstraps to ensure proper routing.
|
||||
configure_external_address() {
|
||||
# Extract the first external address, stripping JSON formatting
|
||||
EXT_ADDRESS=$(rad config get node.externalAddresses | tr -d '[]" \\n' | cut -d',' -f1)
|
||||
EXT_ADDRESS=$(rad config | jq -r '.node.externalAddresses[0]')
|
||||
|
||||
if [ -n "$EXT_ADDRESS" ]; then
|
||||
# Check if it already starts with the pod's hostname to prevent stuttering
|
||||
|
||||
Reference in New Issue
Block a user