Skip to content

Commit 973e338

Browse files
refactor: cleanup code
1 parent 30cdf17 commit 973e338

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jail/linux.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,12 @@ func (l *LinuxJail) configureIptables() error {
296296
// cleanupNetworking removes networking configuration
297297
func (l *LinuxJail) cleanupNetworking() error {
298298
runner := newCommandRunner([]*command{
299-
{
300-
"delete veth pair",
301-
exec.Command("ip", "link", "del", l.vethHostName),
302-
[]uintptr{uintptr(unix.CAP_NET_ADMIN)},
303-
},
299+
// NOTE: seems that command is unnecessary, because device is automatically deleted when boundary exits
300+
//{
301+
// "delete veth pair",
302+
// exec.Command("ip", "link", "del", l.vethHostName),
303+
// []uintptr{uintptr(unix.CAP_NET_ADMIN)},
304+
//},
304305
})
305306
if err := runner.runIgnoreErrors(); err != nil {
306307
return err

0 commit comments

Comments
 (0)