aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/gtk-gnutella
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-11 23:06:40 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-11 23:06:40 +0800
commit25d879837c30962ef28e3e14882aaf4163304b06 (patch)
treeddf48f53359de67d53287faabd5cfe8d1167825a /net-p2p/gtk-gnutella
parentb164698b914aff1333701bbf378792076590bc27 (diff)
downloadfreebsd-ports-gnome-25d879837c30962ef28e3e14882aaf4163304b06.tar.gz
freebsd-ports-gnome-25d879837c30962ef28e3e14882aaf4163304b06.tar.zst
freebsd-ports-gnome-25d879837c30962ef28e3e14882aaf4163304b06.zip
ignore private network hits
PR: 32695 Submitted by: maintainer
Diffstat (limited to 'net-p2p/gtk-gnutella')
-rw-r--r--net-p2p/gtk-gnutella/Makefile1
-rw-r--r--net-p2p/gtk-gnutella/files/patch-search.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/net-p2p/gtk-gnutella/Makefile b/net-p2p/gtk-gnutella/Makefile
index bd6f18fb10e5..f85a65760202 100644
--- a/net-p2p/gtk-gnutella/Makefile
+++ b/net-p2p/gtk-gnutella/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gtk-gnutella
PORTVERSION= 0.18
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://gtk-gnutella.sourceforge.net/download/ \
diff --git a/net-p2p/gtk-gnutella/files/patch-search.c b/net-p2p/gtk-gnutella/files/patch-search.c
new file mode 100644
index 000000000000..b418fcce1cf0
--- /dev/null
+++ b/net-p2p/gtk-gnutella/files/patch-search.c
@@ -0,0 +1,20 @@
+--- src/search.c.orig Thu Dec 6 23:52:35 2001
++++ src/search.c Fri Dec 7 00:05:49 2001
+@@ -13,6 +13,7 @@
+ #include "dialog-filters.h"
+ #include "routing.h"
+ #include "autodownload.h"
++#include "hosts.h"
+
+ #define MAKE_CODE(a,b,c,d) ( \
+ ((guint32) (a) << 24) | \
+@@ -1258,7 +1259,8 @@
+ if (
+ sch->items >= search_max_results ||
+ search_result_is_dup(sch, rc) ||
+- !filter_record(sch, rc)
++ !filter_record(sch, rc) ||
++ !check_valid_host(rc->results_set->ip,6346)
+ ) {
+ rs->records = g_slist_remove(rs->records, rc);
+ rs->num_recs--;