Allow to intercept localhost and multicast connections

This commit is contained in:
Gustavo Iñiguez Goia 2019-10-29 19:53:07 +01:00
parent 65c3790106
commit a0eacfb8b8

View file

@ -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)