possibly fix weird issue I was having with netns, still not sure I understand why it was a problem

This commit is contained in:
Arceliar 2018-04-28 16:39:58 -05:00
parent ccb23b6a56
commit 8b9a91be57
2 changed files with 3 additions and 1 deletions

View file

@ -48,7 +48,8 @@ func (tun *tunDevice) setupAddress(addr string) error {
}
for _, ifce := range ifces {
if ifce.Name == tun.iface.Name() {
netIF = &ifce
var newIF = ifce
netIF = &newIF // Don't point inside ifces, it's apparently unsafe?...
}
}
if netIF == nil {