Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
simulation: Switch externalAddress config parsing to jq
Adrian Duke committed 8 days ago
commit 56020f59665391975e1ce8c3befacd8e21d5f11c
parent 108d4f9cc4d6754fc86d6099fe004db18a3ba2d3
1 file changed +1 -1
modified simulation/modules/radicle-node/templates/config.cue
@@ -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