mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Merge pull request #428 from safing/feature/primitive-encryption-detection
Add primitive encryption detection for until the inspection framework is merged
This commit is contained in:
commit
304879b6da
1 changed files with 14 additions and 1 deletions
|
@ -382,9 +382,22 @@ func initialHandler(conn *network.Connection, pkt packet.Packet) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: enable inspecting again
|
// TODO: Enable inspection framework again.
|
||||||
conn.Inspecting = false
|
conn.Inspecting = false
|
||||||
|
|
||||||
|
// TODO: Quick fix for the SPN.
|
||||||
|
// Use inspection framework for proper encryption detection.
|
||||||
|
switch conn.Entity.DstPort() {
|
||||||
|
case
|
||||||
|
22, // SSH
|
||||||
|
443, // HTTPS
|
||||||
|
465, // SMTP-SSL
|
||||||
|
853, // DoT
|
||||||
|
993, // IMAP-SSL
|
||||||
|
995: // POP3-SSL
|
||||||
|
conn.Encrypted = true
|
||||||
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case conn.Inspecting:
|
case conn.Inspecting:
|
||||||
log.Tracer(pkt.Ctx()).Trace("filter: start inspecting")
|
log.Tracer(pkt.Ctx()).Trace("filter: start inspecting")
|
||||||
|
|
Loading…
Add table
Reference in a new issue