mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Remove connection reason when none is given in a verdict update
This commit is contained in:
parent
985e979d1d
commit
67e02ecc1e
1 changed files with 3 additions and 0 deletions
|
@ -505,6 +505,9 @@ func (conn *Connection) SetVerdict(newVerdict Verdict, reason, reasonOptionKey s
|
|||
if reasonOptionKey != "" && conn.Process() != nil {
|
||||
conn.Reason.OptionKey = reasonOptionKey
|
||||
conn.Reason.Profile = conn.Process().Profile().GetProfileSource(conn.Reason.OptionKey)
|
||||
} else {
|
||||
conn.Reason.OptionKey = ""
|
||||
conn.Reason.Profile = ""
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue