[freenet-dev] [freenet-cvs] r16710 -?trunk/freenet/src/freenet/node
Florent Daignière
nextgens at freenetproject.org
Wed Dec 19 19:12:04 UTC 2007
* Matthew Toseland <toad at amphibian.dyndns.org> [2007-12-19 19:08:52]:
> On Wednesday 19 December 2007 19:04, Florent Daignière wrote:
> > * Matthew Toseland <toad at amphibian.dyndns.org> [2007-12-19 18:23:35]:
> >
> > > I don't understand the fix. It's supposed to randomize it and then record
> the
> > > new port number?
> >
> > I'm ensuring that -1 isn't used as a port number in freenet.ini (because the
> > code doesn't handle it properly: can't overwrite it and keeps on
> > re-generating a new freenet.ini).
>
> Well, if port number is -1, we will pick a random node. The only problem is
> that it won't write it to disk. We need to set a flag somehow and force the
> config to be written to disk as soon as we've finished registering stuff on
> it. (Perhaps in finishedInit() ?)
If port number is -1 in freenet.ini the problem is between the chair and
the keyboard! If you want the node to randomize the port "properly",
don't set it: remove the line!
That fix is preventing the problem from breaking more things, that's all
;)
NextGen$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20071219/b0f9b3db/attachment.pgp
More information about the Devl
mailing list