mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Fix multicast detection on ended connections as well as some linter errors
This commit is contained in:
parent
787f9e7dec
commit
911a80996a
4 changed files with 3 additions and 8 deletions
|
@ -2,8 +2,6 @@ package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/safing/portbase/database"
|
"github.com/safing/portbase/database"
|
||||||
|
|
||||||
// Dependencies.
|
|
||||||
_ "github.com/safing/portbase/database/dbmodule"
|
_ "github.com/safing/portbase/database/dbmodule"
|
||||||
_ "github.com/safing/portbase/database/storage/bbolt"
|
_ "github.com/safing/portbase/database/storage/bbolt"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ func GetMulticastRequestConn(responseConn *Connection, responseFromNet *net.IPNe
|
||||||
switch {
|
switch {
|
||||||
case conn.Inbound:
|
case conn.Inbound:
|
||||||
// Ignore incoming connections.
|
// Ignore incoming connections.
|
||||||
//case conn.Ended != 0:
|
case conn.Ended != 0:
|
||||||
// Ignore ended connections.
|
// Ignore ended connections.
|
||||||
case conn.Entity.Protocol != responseConn.Entity.Protocol:
|
case conn.Entity.Protocol != responseConn.Entity.Protocol:
|
||||||
// Ignore on protocol mismatch.
|
// Ignore on protocol mismatch.
|
||||||
|
|
|
@ -6,8 +6,6 @@ import (
|
||||||
"github.com/safing/portbase/database/migration"
|
"github.com/safing/portbase/database/migration"
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
"github.com/safing/portbase/modules"
|
"github.com/safing/portbase/modules"
|
||||||
|
|
||||||
// Dependency.
|
|
||||||
_ "github.com/safing/portmaster/core/base"
|
_ "github.com/safing/portmaster/core/base"
|
||||||
"github.com/safing/portmaster/updates"
|
"github.com/safing/portmaster/updates"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,9 +7,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue