>>>>> "GJ" == Gianni Johansson <giannijohansson at mediaone.net> writes:

    GJ> I disagree. Truly ridiculous addresses shouldn't make it into
    GJ> the data store (or whatever the 0.4 routing mechanism's analog
    GJ> is) in the first place.

OK, well, I can think of a few ways to fix this:

1) Change tcpAddress so that it throws an exception if a private
   address is used. (This would prevent using a private network and a
   "gateway", however).

2) Change the code in StoreData so that it does a validity check on an
   address before saving it to the datastore. If the address is bad,
   it changes the address for use downstream to its own, and it stores
   a null reference.

3) Change the code in Node so that if the address it's using isn't
   valid, sets itself to transient and continues on its way.

Actually, probably a combo of 2) and 3) is the best thing.

~Mr. Bad

-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Mr. Bad <mr.bad at pigdog.org> | Pigdog Journal | http://pigdog.org/ 
 "Your description of coffee is how you interpret Sex."
                              -- "Personality Quiz" chain letter
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to