From 93b724af7be9056a28ac7032049bb75f800950e6 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Wed, 1 Jul 2026 15:41:46 -0600 Subject: rework notificaitons, add better limiting --- sh.conf.example | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sh.conf.example') diff --git a/sh.conf.example b/sh.conf.example index e830344..4b14fc5 100644 --- a/sh.conf.example +++ b/sh.conf.example @@ -1,2 +1,11 @@ -to_host="${to_host:-127.0.0.1}" -to_port="${to_port:-1337}" +to_host="127.0.0.1" +to_port="1234" + +notify(){ + if [ -n "$addlNotify" ]; then + tee >(nc -q 0 "${addlNotify%:*}" "${addlNotify##*:}") | nc -q 0 "${to_host}" "${to_port}" >/dev/null + else + nc -q 0 "${to_host}" "${to_port}" >/dev/null + fi +} + -- cgit v1.3.1-10-gc9f91