Logo Search packages:      
Sourcecode: calibre version File versions  Download package

def cherrypy::_cpchecker::Checker::check_localhost (   self  ) 

Warn if any socket_host is 'localhost'. See #711.

Definition at line 262 of file _cpchecker.py.

00262                              :
        """Warn if any socket_host is 'localhost'. See #711."""
        for k, v in cherrypy.config.iteritems():
            if k == 'server.socket_host' and v == 'localhost':
                warnings.warn("The use of 'localhost' as a socket host can "
                    "cause problems on newer systems, since 'localhost' can "
                    "map to either an IPv4 or an IPv6 address. You should "
                    "use '' or '[::1]' instead.")
                    "use '' or '[::1]' instead.")

Generated by  Doxygen 1.6.0   Back to index