On Sun, Jul 6, 2008 at 3:27 PM, Mats <[EMAIL PROTECTED]> wrote:

> Also thank you Mike for mentioning how to restrict allowed subnets --
> I didn't realize that was an allowed-ip-addresses netmask; one might
> consider renaming it to something other than 'host' (e.g.
> 'allowed_subnet 127.0.0.1 # (0.0.0.0 to allow any client on the
> internet)') unless this is standard nomenclature.

I don't think you can use a network/netmask or multiple IPs; you can
just use an IP/domain name or the special address 0.0.0.0.   I was
thinking of a situation where you're connected to both a local network
10.0.0.0 and the Internet; you could allow it to listen to the local
network.

The official addressing documentation is in the Python library
reference at the beginning of the socket module.  The word 'host' is
traditional; I'm not sure 'listening_network' is any better.  But
given that PasteDeploy is widely deployed with the current name,
renaming the variable would increase confusion.

But Python, Paste, and Pylons all need to document better what the
allowed values for 'host' are.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to