◐ Shell
clean mode source ↗

Message 71034 - Python tracker

Le lundi 11 août 2008 à 19:58 +0000, Trent Nelson a écrit :
> +        if self._address[0] == '0.0.0.0':
> +            self._address[0] = '127.0.0.1'

Please no. If the user asks for 0.0.0.0, either obey or raise an
exception, but do not silently change the value.

My own humble opinion is that 0.0.0.0 should be allowed and, at worse,
the documentation may carry a warning about it.