python WSGI是否支持IPv6?

问题描述:

我正在使用python WSGI模块来处理IPv4 http请求。 WGSI是否支持IPv6请求?它可以监听IPv6 IP端口组合吗?python WSGI是否支持IPv6?

WSGI完全不关心IP版本;它是一个Web服务器和Python代码之间通信的规范。这取决于你的服务器 - Apache,nginx,gunicorn,uwsgi,无论 - 听端口。

+0

嗯,我认为这个说法只有90%是真的:如果你确实使用“python WSGI模块”(如'wsgiref.simple_server.WSGIServer'没有任何额外的web服务器在前面),那么这个问题实际上是有效的。 –