issue new verdict on configuration change
This commit is contained in:
@@ -155,7 +155,7 @@ func convertConnection(conn *network.Connection) (*Conn, error) {
|
||||
IPProtocol: conn.IPProtocol,
|
||||
LocalIP: conn.LocalIP.String(),
|
||||
LocalPort: conn.LocalPort,
|
||||
Verdict: conn.Verdict,
|
||||
Verdict: conn.Verdict.User,
|
||||
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 {
|
||||
switch conn.Verdict.User {
|
||||
case network.VerdictAccept, network.VerdictRerouteToNameserver, network.VerdictRerouteToTunnel:
|
||||
accepted := true
|
||||
c.Allowed = &accepted
|
||||
|
||||
Reference in New Issue
Block a user