func releasePort(bnd netutils.PortBinding) error { // Construct the host side transport address host, err := bnd.HostAddr() if err != nil { return err } return portMapper.Unmap(host) }