Index: heloexchange.c =================================================================== RCS file: /home/cvs/GNUnet/GNUnet/src/server/heloexchange.c,v retrieving revision 1.167 diff -u -r1.167 heloexchange.c --- heloexchange.c 23 Feb 2004 00:26:18 -0000 1.167 +++ heloexchange.c 13 Apr 2004 13:12:08 -0000 @@ -372,6 +372,26 @@ FREE(copy); } + if (testConfigurationString("GNUNETD", + "PRIVATE-NETWORK", + "YES")) { + /* the option 'PRIVATE-NETWORK' can be used + to limit the connections of this peer to + peers of which the hostkey has been copied + by hand to data/hosts; if this option is + given, GNUnet will not accept advertisements + of peers that the local node does not already + know about. Note that in order for this + option to work, HOSTLISTURL should either + not be set at all or be set to a trusted + peer that only advertises the private network. + Also, the option does NOT work at the moment + if the NAT transport is loaded; for that, + a couple of lines above would need some minor + editing :-). */ + return SYSERR; + } + cronTime(&now); if ( (now - lastHELOMsg) * getConfigurationInt("LOAD",