FproxyServlet, line 331 (in the devel branch)... the function
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// test if local connection
isLocalConnection = req.isUserInRole(SUPERUSER);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What is this? The method called always returns false.
Surely it would make more sense to do something with getRemoteHost()?
This is ONLY used to determine which robots.txt to send... local
requests theoretically get a 404, so robots can pull the whole of
freenet if they want to, and remote requests get a robots.txt that
disallows everything. Of course, because isLocalConnection is ALWAYS
false, it always sends the disallow: *.
--
Matthew Toseland
toad at amphibian.dyndns.org/amphibian at users.sourceforge.net
Freenet/Coldstore open source hacker.
Contracted full time by Freenet Project Inc.
http://freenetproject.org/
ICTHUS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20030115/6ac7f44f/attachment.pgp>