mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Allow to intercept localhost and multicast connections
This commit is contained in:
parent
65c3790106
commit
a0eacfb8b8
1 changed files with 0 additions and 22 deletions
|
@ -41,17 +41,6 @@ func Parse(nfp netfilter.Packet) *Connection {
|
|||
return nil
|
||||
}
|
||||
|
||||
// we're not interested in connections
|
||||
// from/to the localhost interface
|
||||
if ip.SrcIP.IsLoopback() {
|
||||
return nil
|
||||
}
|
||||
|
||||
// skip multicast stuff
|
||||
if ip.SrcIP.IsMulticast() || ip.DstIP.IsMulticast() {
|
||||
return nil
|
||||
}
|
||||
|
||||
con, err := NewConnection6(&nfp, ip)
|
||||
if err != nil {
|
||||
log.Debug("%s", err)
|
||||
|
@ -66,17 +55,6 @@ func Parse(nfp netfilter.Packet) *Connection {
|
|||
return nil
|
||||
}
|
||||
|
||||
// we're not interested in connections
|
||||
// from/to the localhost interface
|
||||
if ip.SrcIP.IsLoopback() {
|
||||
return nil
|
||||
}
|
||||
|
||||
// skip multicast stuff
|
||||
if ip.SrcIP.IsMulticast() || ip.DstIP.IsMulticast() {
|
||||
return nil
|
||||
}
|
||||
|
||||
con, err := NewConnection(&nfp, ip)
|
||||
if err != nil {
|
||||
log.Debug("%s", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue