-- Leo's gemini proxy

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

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: urcd
action: commit
revision:
path_from:
revision_from: 1ec75050789c3c24befedcf72a2941d3330766b3:
path_to:
revision_to:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

commit 1ec75050789c3c24befedcf72a2941d3330766b3
Author: root <root@d3v11.ano>
Date:   Tue Apr 30 17:59:26 2013 +0000

    [urcd][security] ping parse offset (unstable)

diff --git a/src/urcd.pyx b/src/urcd.pyx

index 3ea71cfcdf28c2185fa0419ececdd6cb87977d5b..

index ..f2ca035a53862ce1905f34c0209e82d759d2909e 100644

--- a/src/urcd.pyx
+++ b/src/urcd.pyx
@@ -138,7 +138,7 @@ ping_t = time.time()

 try_write(wr,
   ':'+serv+' NOTICE * :\x1b[8m\n'
-  'PING :'+ping_b+'\n'
+  'PING  :'+ping_b+'\n'
 )

 while 1:
@@ -148,7 +148,7 @@ while 1:
   if not client_revents(0):
     if time.time() - ping_t >= 16:
       if not nick or not ping_i or not ping_u or ping_n == 7: sock_close(15,0)
-      try_write(wr,"PING :" + ping_b + "\n")
+      try_write(wr,"PING  :" + ping_b + "\n")
       ping_t = time.time()
       ping_n += 1

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

-- Response ended

-- Page fetched on Sun Jun 2 17:40:16 2024