• R/O
  • HTTP
  • SSH
  • HTTPS

multi_forward: Commit


Commit MetaInfo

Revisione3e80162c5b27836c81bff5ef27994c5b63d0f3d (tree)
Zeit2019-10-24 14:00:38
AutorSatoshi Yasuda <7m3tjz@jarl...>
CommiterSatoshi Yasuda

Log Message

modified: forward_in.c
modified: multi_forward_utils.c

Ändern Zusammenfassung

Diff

--- a/forward_in.c
+++ b/forward_in.c
@@ -322,7 +322,7 @@ void multi_connect (void)
322322 fflush (log_file);
323323 return; // end
324324 }
325-
325+#if 0
326326 next = MultiConnectTablePnt;
327327 while (next)
328328 { if ((next->multi_addr.sin_addr.s_addr == multi_addr.sin_addr.s_addr)
@@ -333,6 +333,7 @@ void multi_connect (void)
333333 next = next->f_chain;
334334 }
335335 if (next == NULL) return;
336+#endif
336337
337338 time (&atime);
338339 if (!memcmp (multi_buff.d_packet.id, "HPCH", 4))
--- a/multi_forward_utils.c
+++ b/multi_forward_utils.c
@@ -281,7 +281,7 @@ void read_hole_punch (char buff[], int length)
281281 hole_addr.sin_family = AF_INET;
282282 hole_addr.sin_port = htons(port);
283283 hole_addr.sin_addr.s_addr = inet_addr(ip_add);
284-
284+#if 0
285285 pnt = MultiConnectTablePnt;
286286 while (pnt)
287287 {
@@ -293,6 +293,7 @@ void read_hole_punch (char buff[], int length)
293293 }
294294 pnt = pnt->f_chain;
295295 }
296+#endif
296297
297298 ret = sendto (multi_sd, buff, 25, 0,
298299 (struct sockaddr *)&hole_addr, sizeof(hole_addr));
Show on old repository browser