mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Fix QueueDNSResponses to include ip6tables
This commit is contained in:
parent
cc3786b919
commit
ba00f91bde
1 changed files with 13 additions and 0 deletions
|
@ -31,6 +31,9 @@ func RunRule(enable bool, rule []string) (err error) {
|
|||
return
|
||||
}
|
||||
_, err = core.Exec("ip6tables", rule)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -51,9 +54,19 @@ func QueueDNSResponses(enable bool, queueNum int) (err error) {
|
|||
"--queue-num", fmt.Sprintf("%d", queueNum),
|
||||
"--queue-bypass",
|
||||
}
|
||||
|
||||
lock.Lock()
|
||||
defer lock.Unlock()
|
||||
|
||||
_, err := core.Exec("iptables", rule)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = core.Exec("ip6tables", rule)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue