No need of changing web2py,  running a proxy on server spoofs your IP
(for example Achilles proxy for Windows)


On 10 jun, 15:59, Giuseppe Luca Scrofani <[email protected]> wrote:
> Thanks Candid and Massimo for answering, I've tried your suggestion,
> Massimo, and it worked.
> I've replaced (starting from line 12 in applications/admin/models/access.py)
>
> else:
>     hosts = (http_host, socket.gethostname(),
>              socket.gethostbyname(http_host),
>              '::1','127.0.0.1','::ffff:127.0.0.1')
>
> to
>
> else:
>     hosts = (http_host, socket.gethostname(),
>              socket.gethostbyname(http_host),
>              '::1','127.0.0.1','::ffff:127.0.0.1','192.168.0.21')
>
> activating the admin interface for my other computer in my lan.
> This mailing list is very, very good, I hope to become good enough to
> be as helping as you.
>
> On Thu, Jun 10, 2010 at 2:57 PM, mdipierro <[email protected]> wrote:
> > there is no comment line option becasue we believe this should not be
> > done. Anyway, you can edit applications/admin/models/access.py and
> > implement your own rules.

Reply via email to