-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: shell-daemons
action: commit
revision:
path_from:
revision_from: 90821030f6a6e2ca579678cdaadc9f8c833a4e6f:
path_to:
revision_to:

git.thebackupbox.net

shell-daemons

git://git.thebackupbox.net/shell-daemons

commit 90821030f6a6e2ca579678cdaadc9f8c833a4e6f
Author: epoch <epoch@thebackupbox.net>
Date:   Fri Mar 3 21:30:57 2023 +0000

    added a logger line and a handy message if the user's finger response won't work

diff --git a/fingerd b/fingerd

index 5991aba56c882e36d263f1f4cab628a400fa5c3a..

index ..cbf724ddd822113653958d2b04a8f06877eccffe 100755

--- a/fingerd
+++ b/fingerd
@@ -10,12 +10,18 @@ fi
 request="$(printf "%s\n" "$request" | tr -d '\r' | sed 's|^-*||g' | tr -cd 'a-z0-9@.+-')"

 if [ "$request" = "ring" ];then
+  printf "you are here:\r\n"
+  printf "<finger://thebackupbox.net/ring>\r\n"
   printf "This is the finger ring!\r\n"
-  printf "to join the finger ring:\r\n"
-  printf "proxy a finger request through this server.\r\n"
-  printf "and have your finger response contain:\r\n"
+  printf "To join the finger ring:\r\n"
+  printf "Have your finger response contain:\r\n"
   printf "    <finger://thebackupbox.net/ring>\r\n"
   printf "on a line by itself.\r\n"
+  printf "To prevent stuff like, activity information at\r\n"
+  printf 'the start of a finger response from triggering an "update"\r\n'
+  printf 'the server only looks at the stuff /after/ the\r\n'
+  printf "    <finger://thebackupbox.net/ring>\r\n"
+  printf 'next, proxy a request through thebackupbox.net'
   printf "like this:\r\n"
   printf "    finger epoch@whois.ano@thebackupbox.net\r\n"
   printf " or finger://thebackupbox.net/epoch@whois.ano\r\n"
@@ -43,10 +49,13 @@ if grep '@' <<< "$request" 2>&1 >/dev/null;then
       printf "%s %s %s\n" "${request}" "${hash}" "$(date +%s)" >> /etc/finger/ring.uris
       printf "%s\n" "${resp}"
       printf "[this user has been added to the finger ring!]\r\n"
+      logger -p local2.debug "${request} has been updated"
     else
       printf "%s\n" "${resp}"
       printf "[this user is already in the finger ring or no update found]\r\n"
     fi
+  else
+    printf "[this user does not have <finger://thebackupbox.net/ring> in their finger response. not including.]"
   fi
   exit 0
 fi

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:13:22 2024