diff options
author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-05-07 00:05:09 +0000 |
---|---|---|
committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-08-30 04:00:59 +0000 |
commit | 28da05437de8f15df379041a653ee72cf136204b (patch) | |
tree | 37ee3da365dd4207e71805a647204fba45630f7c /tests | |
parent | Fix -i 0.0.0.0 (diff) | |
download | miniserve-28da05437de8f15df379041a653ee72cf136204b.tar.gz miniserve-28da05437de8f15df379041a653ee72cf136204b.zip |
Fix default binding behaviour
On some platforms, binding to to both "::" and "0.0.0.0" at the same
time is not allowed because "::" may already accepts ipv4 connections.
For other platforms, binding to both is necessary to support ipv4 and
ipv6.
This platform-specific behaviour is due to the variation in the
default value for the socket option "IPV6_ONLY".
Fix this by always setting the "IPv6_ONLY" sockopt to true!
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions