mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +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 {
|
if reasonOptionKey != "" && conn.Process() != nil {
|
||||||
conn.Reason.OptionKey = reasonOptionKey
|
conn.Reason.OptionKey = reasonOptionKey
|
||||||
conn.Reason.Profile = conn.Process().Profile().GetProfileSource(conn.Reason.OptionKey)
|
conn.Reason.Profile = conn.Process().Profile().GetProfileSource(conn.Reason.OptionKey)
|
||||||
|
} else {
|
||||||
|
conn.Reason.OptionKey = ""
|
||||||
|
conn.Reason.Profile = ""
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue