filter: add forwarder filter

Fixes: https://github.com/damus-io/noteguard/issues/10
Changelog-Added: Add forwarder filter
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2024-07-11 09:02:47 -07:00
parent 794468d98a
commit 15e53a116a
8 changed files with 169 additions and 2 deletions

10
test/delayed-nostril Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
while true
do
note="$(nostril --silent --content hello)"
echo "{\"type\": \"new\",\"receivedAt\":12345,\"sourceType\":\"IP4\",\"sourceInfo\": \"127.0.0.2\",\"event\":$note}"
sleep ${1:-0.1}
done