• R/O
  • HTTP
  • SSH
  • HTTPS

multi_forward: Commit


Commit MetaInfo

Révision4a2df0dced3652ca9b10705fd343dc090d086779 (tree)
l'heure2019-09-19 19:29:19
AuteurSatoshi Yasuda <yasuda@jk1z...>
CommiterSatoshi Yasuda

Message de Log

modified: forward_in.c
modified: read_config.c

Change Summary

Modification

--- a/forward_in.c
+++ b/forward_in.c
@@ -51,6 +51,14 @@ int forward_resend (void)
5151 return FALSE;
5252 }
5353
54+ if (memcmp (inet_ntoa(fwd_addr.sin_addr), forward_addr, strlen(forward_addr)))
55+ {
56+ time(&atime);
57+ fprintf (log_file, "%24.24s illigal access from %s %d\n", ctime(&atime), inet_ntoa(fwd_addr.sin_addr), fwd_addr.sin_port);
58+ fflush (log_file);
59+ return TRUE;
60+ }
61+
5462 if (length < 10) return TRUE;
5563
5664 if (!memcmp(forward_buff.d_packet.id, "DSTR", 4) && (forward_buff.d_packet.sr == 's'))
--- a/read_config.c
+++ b/read_config.c
@@ -3,7 +3,7 @@
33 int read_config(int argc, char **argv)
44 {
55 char buff[256];
6- char *delmi = "=\n\r\t\0";
6+ char *delmi = " =\n\r\t\0";
77 char *pnt;
88 char *p;
99 int n;
Afficher sur ancien navigateur de dépôt.