Merge pull request #6105 from gdm85/master
Do not consider iptables' output an error in case of xtables lock
This commit is contained in:
commit
c22a0a3297
1 changed files with 5 additions and 0 deletions
|
@ -166,5 +166,10 @@ func Raw(args ...string) ([]byte, error) {
|
|||
return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
|
||||
}
|
||||
|
||||
// ignore iptables' message about xtables lock
|
||||
if strings.Contains(string(output), "waiting for it to exit") {
|
||||
output = []byte("")
|
||||
}
|
||||
|
||||
return output, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue