Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…v6 support by introducing getaddrinfo; one consequence of using getaddrinfo is that the address for hostname relies on the underlying C-API. A hostname of "" throws an error on linux but not on windows. Hence, the default value of hostname was change to None resulting in the default address becoming localhost. By adding the AI_PASSIVE flag, a hostname of None will result in a wildcard address (INADDR_ANY for IPv4 addresses, IN6ADDR_ANY_INIT) is used by applications to listen on all interfaces.
- Loading branch information