1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

ignore private network hits

PR:		32695
Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2001-12-11 15:06:40 +00:00
parent cae805016d
commit 3f3db84aac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51359
4 changed files with 42 additions and 0 deletions

View File

@ -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/ \

View File

@ -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--;

View File

@ -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/ \

View File

@ -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--;