Fix multicast detection on ended connections as well as some linter errors

This commit is contained in:
Daniel
2022-06-01 13:45:13 +02:00
parent 787f9e7dec
commit 911a80996a
4 changed files with 3 additions and 8 deletions

View File

@@ -17,8 +17,8 @@ func GetMulticastRequestConn(responseConn *Connection, responseFromNet *net.IPNe
switch {
case conn.Inbound:
// Ignore incoming connections.
//case conn.Ended != 0:
// Ignore ended connections.
case conn.Ended != 0:
// Ignore ended connections.
case conn.Entity.Protocol != responseConn.Entity.Protocol:
// Ignore on protocol mismatch.
case conn.LocalPort != responseConn.LocalPort: