On Thu, Aug 14, 2003 at 09:42:18PM -0500, Tom Kaitchuck wrote: > Here is a Diff to enable Freenet to only accept connections from the local > network. It adds the config option "localSubNet". This can be set to a,b or > c. These correspond to accepting connections for a class a b and c network > respectively. If it is set to anything else or blank it will assume that you > want to be part of the global network. > > The code to check the IPs for the incoming connections is in and by my > preliminary tests is working. I still need to make "localSubNet" a proper > configuration option (It is just kind of hacked on now) and add a description > etc. (If someone beats me to it, that's cool...) So, if you get a chance, > test this code.
Why not use the code we use for local interfaces, from LocalNIOInterface? It supports multiple IP addresses and subnets specified in the config file. -- Matthew J Toseland - [EMAIL PROTECTED] Freenet Project Official Codemonkey - http://freenetproject.org/ ICTHUS - Nothing is impossible. Our Boss says so.
pgp00000.pgp
Description: PGP signature
