mkblocklist 408 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/bash

# More blocklists can be added as long as you append them to block.dynamic, one per line, in quotes.
curl -s https://raw.githubusercontent.com/dzuk-mutant/blockchain/master/list/list.json | jq '.block[].domain' > block.dynamic
cat relay.base > relay.yaml
for j in $(cat block.static); do (echo "  - $j" >> relay.yaml); done
for j in $(cat block.dynamic); do (echo "  - $j" >> relay.yaml); done