Don't override host in get_bind_endpoint.

Also remove unused get_env_bind_endpoint.