Merge pull request #3306 from roylee17/3224-fix-udp-cleanup

network: fix a typo in udp cleanup path
This commit is contained in:
Victor Vieux 2013-12-21 00:03:07 -08:00
commit a2fcd3d8f0
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ func (iface *NetworkInterface) Release() {
log.Printf("Unable to release port %s", nat)
}
} else if nat.Port.Proto() == "udp" {
if err := iface.manager.tcpPortAllocator.Release(ip, hostPort); err != nil {
if err := iface.manager.udpPortAllocator.Release(ip, hostPort); err != nil {
log.Printf("Unable to release port %s: %s", nat, err)
}
}