mirror of
https://github.com/moby/moby.git
synced 2026-08-04 07:00:53 +00:00
Merge pull request #50703 from thaJeztah/libnet_fix_delete
daemon/libnet/drv/bridge: stubPortMapper.UnmapPorts: fix slices.Delete
This commit is contained in:
@@ -1015,7 +1015,7 @@ func (pm *stubPortMapper) UnmapPorts(_ context.Context, reqs []portmapperapi.Por
|
||||
if idx == -1 {
|
||||
return fmt.Errorf("stubPortMapper.UnmapPorts: pb doesn't exist %v", req)
|
||||
}
|
||||
pm.mapped = slices.Delete(pm.mapped, idx, idx)
|
||||
pm.mapped = slices.Delete(pm.mapped, idx, idx+1)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user