mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Adapt to notifications module update
This commit is contained in:
parent
328fc9087f
commit
93cc4a056e
2 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ func notifyDisableDNSCache() {
|
|||
ID: "windows-disable-dns-cache",
|
||||
Message: "The Portmaster needs the Windows Service \"DNS Client\" (dnscache) to be disabled for best effectiveness.",
|
||||
Type: notifications.Warning,
|
||||
}).Init().Save()
|
||||
}).Save()
|
||||
}
|
||||
|
||||
func notifyRebootRequired() {
|
||||
|
@ -89,5 +89,5 @@ func notifyRebootRequired() {
|
|||
ID: "windows-dnscache-reboot-required",
|
||||
Message: "Please restart your system to complete Portmaster integration.",
|
||||
Type: notifications.Warning,
|
||||
}).Init().Save()
|
||||
}).Save()
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
"github.com/safing/portbase/log"
|
||||
"github.com/safing/portbase/notifications"
|
||||
"github.com/safing/portmaster/intel"
|
||||
|
@ -16,7 +17,6 @@ import (
|
|||
"github.com/safing/portmaster/process"
|
||||
"github.com/safing/portmaster/profile"
|
||||
"github.com/safing/portmaster/status"
|
||||
"github.com/miekg/dns"
|
||||
|
||||
"github.com/agext/levenshtein"
|
||||
)
|
||||
|
@ -178,7 +178,7 @@ func DecideOnCommunicationAfterIntel(comm *network.Communication, fqdn string, r
|
|||
},
|
||||
},
|
||||
Expires: time.Now().Add(nTTL).Unix(),
|
||||
}).Init().Save()
|
||||
}).Save()
|
||||
|
||||
// react
|
||||
select {
|
||||
|
@ -644,7 +644,7 @@ func DecideOnLink(comm *network.Communication, link *network.Link, pkt packet.Pa
|
|||
ID: "deny",
|
||||
Text: "deny",
|
||||
})
|
||||
n.Init().Save()
|
||||
n.Save()
|
||||
|
||||
// react
|
||||
select {
|
||||
|
|
Loading…
Add table
Reference in a new issue