Commit 9fd7397 states
prefer IPv6 loopback when available (::) instead of IPv4 loopback (0.0.0.0), unless 0.0.0.0 is explicitly passed.
However this commit now always uses the IPv6 loopback even when the IPv4 loopback (0.0.0.0) is explicitly passed.
if (!options.hostname || options.hostname === '*' || options.hostname === '0.0.0.0') {
options.hostname = '::';
}
This breaks IPv4 only environments with error:
Fatal error: listen EAFNOSUPPORT: address family not supported :::8081
Commit 9fd7397 states
However this commit now always uses the IPv6 loopback even when the IPv4 loopback (
0.0.0.0) is explicitly passed.This breaks IPv4 only environments with error: