This commit is contained in:
Your Name 2024-09-25 20:02:51 -06:00
parent 77295363b8
commit 210af56a3b
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash
POLICY='/opt/strfry-policies/strfry-policy.ts'
HEX=$(nak decode $1 | jq ".pubkey" | sed 's/"//i' | sed 's/"//i')
echo $HEX > /tmp/block.txt
echo "Adding $1 to block list"
sed -i "29i '$HEX'," $POLICY
sed -i "s/\'\'//g" $POLICY
sed -i "s/'',//g" $POLICY
sed -i '/^$/d' $POLICY
echo $1 > /tmp/block.txt

View File

@ -26,6 +26,7 @@ tagPolicy,
[pubkeyBanPolicy, [
'f9a0cb53543584f348bdb7e14bf19066610a8e1b63c8aa83f3dd36f93f634b46',
'c9379ff536b0a33a63caaebbcbf7eaff167f23c96ae083f60978563ef502d5ec',
'86c6e8c0721355b0774fb9a64412c17399ac9aaf596c8c00563748bbefdeb6f1',
'8253e78ecba9be66999333928b0974e70717fd6194cacc33f5ed90ad2f3558ec',
'10146e50993c2c32cbe5377240d8f647fb56cf1f542f9d214b9a11aefa6b037e',
'f4cb9cbb74a993c5fed5140baad401f87ab592c2363903a48590f19315ee16d4',