mirror of
https://github.com/safing/portmaster
synced 2025-09-04 11:39:29 +00:00
Notify packet issues asynchronously
This commit is contained in:
parent
d8f11aa650
commit
1ff6f34631
1 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@ package compat
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
"github.com/safing/portmaster/service/mgr"
|
||||||
"github.com/safing/portmaster/service/network/packet"
|
"github.com/safing/portmaster/service/network/packet"
|
||||||
"github.com/safing/portmaster/service/process"
|
"github.com/safing/portmaster/service/process"
|
||||||
)
|
)
|
||||||
|
@ -31,10 +32,16 @@ func SubmitDNSCheckDomain(subdomain string) (respondWith net.IP) {
|
||||||
|
|
||||||
// ReportSecureDNSBypassIssue reports a DNS bypassing issue for the given process.
|
// ReportSecureDNSBypassIssue reports a DNS bypassing issue for the given process.
|
||||||
func ReportSecureDNSBypassIssue(p *process.Process) {
|
func ReportSecureDNSBypassIssue(p *process.Process) {
|
||||||
secureDNSBypassIssue.notify(p)
|
module.mgr.Go("report secure dns bypass issue", func(w *mgr.WorkerCtx) error {
|
||||||
|
secureDNSBypassIssue.notify(p)
|
||||||
|
return nil
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReportMultiPeerUDPTunnelIssue reports a multi-peer UDP tunnel for the given process.
|
// ReportMultiPeerUDPTunnelIssue reports a multi-peer UDP tunnel for the given process.
|
||||||
func ReportMultiPeerUDPTunnelIssue(p *process.Process) {
|
func ReportMultiPeerUDPTunnelIssue(p *process.Process) {
|
||||||
multiPeerUDPTunnelIssue.notify(p)
|
module.mgr.Go("report multi-peer udp tunnel issue", func(w *mgr.WorkerCtx) error {
|
||||||
|
multiPeerUDPTunnelIssue.notify(p)
|
||||||
|
return nil
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue