open-consul/agent/xds/net_fallback.go
R.B. Boyer e87d2bb24f
xds: only try to create an ipv6 expose checks listener if ipv6 is supported by the kernel (#9765)
Fixes #9311

This only fails if the kernel has ipv6 hard-disabled. It is not sufficient to merely not provide an ipv6 address for a network interface.
2021-02-19 14:38:43 -06:00

8 lines
93 B
Go

// +build !linux
package xds
func kernelSupportsIPv6() (bool, error) {
return true, nil
}