mirror of
https://github.com/safing/portmaster
synced 2025-09-14 16:59:40 +00:00
Improve verdict handling and switch to immediate re-evaluation
This commit is contained in:
parent
57904426e3
commit
f63df67d23
12 changed files with 242 additions and 111 deletions
|
@ -155,7 +155,7 @@ func convertConnection(conn *network.Connection) (*Conn, error) {
|
|||
IPProtocol: conn.IPProtocol,
|
||||
LocalIP: conn.LocalIP.String(),
|
||||
LocalPort: conn.LocalPort,
|
||||
Verdict: conn.Verdict.User,
|
||||
Verdict: conn.Verdict.Firewall, // TODO: Expose both Worst and Firewall verdicts.
|
||||
Started: time.Unix(conn.Started, 0),
|
||||
Tunneled: conn.Tunneled,
|
||||
Encrypted: conn.Encrypted,
|
||||
|
@ -177,7 +177,7 @@ func convertConnection(conn *network.Connection) (*Conn, error) {
|
|||
c.Type = ""
|
||||
}
|
||||
|
||||
switch conn.Verdict.User {
|
||||
switch conn.Verdict.Firewall {
|
||||
case network.VerdictAccept, network.VerdictRerouteToNameserver, network.VerdictRerouteToTunnel:
|
||||
accepted := true
|
||||
c.Allowed = &accepted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue