summaryrefslogtreecommitdiff
path: root/nodegen
diff options
context:
space:
mode:
authorWilly Goiffon <dev@z3bra.org>2022-09-04 09:30:10 +0200
committerWilly Goiffon <dev@z3bra.org>2022-09-04 09:30:10 +0200
commitb6e13264e1b65b7b5f6fc20f3258389a35e07367 (patch)
treebb9d801580e9dac616ccc12225e159c990a23d4a /nodegen
parent2ba12209bd3c4877a3da7a2d764d4cf471f1a2c0 (diff)
Skip ipv6 only nodes when ipv6 is disabled
Diffstat (limited to 'nodegen')
-rwxr-xr-xnodegen2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodegen b/nodegen
index 4133e3d..12c2fec 100755
--- a/nodegen
+++ b/nodegen
@@ -7,6 +7,6 @@ jq --tab '[.nodes[] |
select(.last_ping > 0) |
select(.tcp_ports | length > 0) |
{".addr4": .ipv4, ".addr6": .ipv6, ".udp_port": .port, ".tcp_port": .tcp_ports[0], ".idstr": .public_key}]' |
-sed 's/"-"/NULL/; s/"\(\.[0-9a-z_]\+\)":/\1 =/; 1d; $d'
+sed 's/"-"/NULL/; s/"NONE"/NULL/; s/"\(\.[0-9a-z_]\+\)":/\1 =/; 1d; $d'
echo '};'