mirror of https://github.com/k3s-io/k3s
parent
1570fe1790
commit
6a84db1f03
|
@ -177,12 +177,11 @@ func LookupExtInterface(iface *net.Interface, netMode int) (*backend.ExternalInt
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to find IPv4 address for interface %s", iface.Name)
|
return nil, fmt.Errorf("failed to find IPv4 address for interface %s", iface.Name)
|
||||||
}
|
}
|
||||||
logrus.Infof("The interface %s with ipv4 address %s will be used by flannel", iface.Name, ifaceAddr[0])
|
|
||||||
ifacev6Addr, err = ip.GetInterfaceIP6Addrs(iface)
|
ifacev6Addr, err = ip.GetInterfaceIP6Addrs(iface)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to find IPv6 address for interface %s", iface.Name)
|
return nil, fmt.Errorf("failed to find IPv6 address for interface %s", iface.Name)
|
||||||
}
|
}
|
||||||
logrus.Infof("Using dual-stack mode. The ipv6 address %s will be used by flannel", ifacev6Addr[0])
|
logrus.Infof("Using dual-stack mode. The interface %s with ipv4 address %s and ipv6 address %s will be used by flannel", iface.Name, ifaceAddr[0], ifacev6Addr[0])
|
||||||
default:
|
default:
|
||||||
ifaceAddr = append(ifaceAddr, nil)
|
ifaceAddr = append(ifaceAddr, nil)
|
||||||
ifacev6Addr = append(ifacev6Addr, nil)
|
ifacev6Addr = append(ifacev6Addr, nil)
|
||||||
|
|
Loading…
Reference in New Issue