Merge pull request #107 from squat/no_private_iface
pkg/mesh: don't shadow privIface
This commit is contained in:
commit
fd8bee718b
@ -131,7 +131,7 @@ func New(backend Backend, enc encapsulation.Encapsulator, granularity Granularit
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to find interface for private IP: %v", err)
|
return nil, fmt.Errorf("failed to find interface for private IP: %v", err)
|
||||||
}
|
}
|
||||||
privIface := ifaces[0].Index
|
privIface = ifaces[0].Index
|
||||||
if enc.Strategy() != encapsulation.Never {
|
if enc.Strategy() != encapsulation.Never {
|
||||||
if err := enc.Init(privIface); err != nil {
|
if err := enc.Init(privIface); err != nil {
|
||||||
return nil, fmt.Errorf("failed to initialize encapsulator: %v", err)
|
return nil, fmt.Errorf("failed to initialize encapsulator: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user