aboutsummaryrefslogtreecommitdiffstats
path: root/examples/addons/scripting-headers.py
diff options
context:
space:
mode:
authorSeth Barrios <sethbarrios@google.com>2019-11-18 14:51:25 -0800
committerSeth Barrios <sethbarrios@google.com>2019-11-18 15:26:49 -0800
commit1ada2e26e81916409261ddb476e520e364b1d3be (patch)
tree486165ffd5211addc93fd9ed10ac3d5d20693838 /examples/addons/scripting-headers.py
parentcd660a035f74e00bd94a9b67c240ee44654ce1ce (diff)
downloadmitmproxy-1ada2e26e81916409261ddb476e520e364b1d3be.tar.gz
mitmproxy-1ada2e26e81916409261ddb476e520e364b1d3be.tar.bz2
mitmproxy-1ada2e26e81916409261ddb476e520e364b1d3be.zip
Add support for IPv6-only environments
Previously, the proxy would attempt to bind to an IPv6 + IPv4 enabled socket. On failure, it would try to bind to an IPv4 only socket. If that failed, the proxy would fail to start. This update makes it so that the proxy also tries to bind to an IPv6-only socket, which is necessary in environments where IPv4 is disabled. In short, the proxy will try binding in the following order, only moving to the next step when binding fails: IPv6 + IPv4 -> IPv4 only -> IPv6 only -> proxy fails to start.
Diffstat (limited to 'examples/addons/scripting-headers.py')
0 files changed, 0 insertions, 0 deletions