mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Improve pre-authenticated port check
This commit is contained in:
parent
f8e5f81a2e
commit
82a224764e
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ func initialHandler(conn *network.Connection, pkt packet.Packet) {
|
|||
log.Tracer(pkt.Ctx()).Trace("filter: handing over to connection-based handler")
|
||||
|
||||
// Check for pre-authenticated port.
|
||||
if localPortIsPreAuthenticated(conn.Entity.Protocol, conn.LocalPort) {
|
||||
if !conn.Inbound && localPortIsPreAuthenticated(conn.Entity.Protocol, conn.LocalPort) {
|
||||
// Approve connection.
|
||||
conn.Accept("connection by Portmaster", noReasonOptionKey)
|
||||
conn.Internal = true
|
||||
|
|
Loading…
Add table
Reference in a new issue