mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29: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",
|
ID: "windows-disable-dns-cache",
|
||||||
Message: "The Portmaster needs the Windows Service \"DNS Client\" (dnscache) to be disabled for best effectiveness.",
|
Message: "The Portmaster needs the Windows Service \"DNS Client\" (dnscache) to be disabled for best effectiveness.",
|
||||||
Type: notifications.Warning,
|
Type: notifications.Warning,
|
||||||
}).Init().Save()
|
}).Save()
|
||||||
}
|
}
|
||||||
|
|
||||||
func notifyRebootRequired() {
|
func notifyRebootRequired() {
|
||||||
|
@ -89,5 +89,5 @@ func notifyRebootRequired() {
|
||||||
ID: "windows-dnscache-reboot-required",
|
ID: "windows-dnscache-reboot-required",
|
||||||
Message: "Please restart your system to complete Portmaster integration.",
|
Message: "Please restart your system to complete Portmaster integration.",
|
||||||
Type: notifications.Warning,
|
Type: notifications.Warning,
|
||||||
}).Init().Save()
|
}).Save()
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/miekg/dns"
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
"github.com/safing/portbase/notifications"
|
"github.com/safing/portbase/notifications"
|
||||||
"github.com/safing/portmaster/intel"
|
"github.com/safing/portmaster/intel"
|
||||||
|
@ -16,7 +17,6 @@ import (
|
||||||
"github.com/safing/portmaster/process"
|
"github.com/safing/portmaster/process"
|
||||||
"github.com/safing/portmaster/profile"
|
"github.com/safing/portmaster/profile"
|
||||||
"github.com/safing/portmaster/status"
|
"github.com/safing/portmaster/status"
|
||||||
"github.com/miekg/dns"
|
|
||||||
|
|
||||||
"github.com/agext/levenshtein"
|
"github.com/agext/levenshtein"
|
||||||
)
|
)
|
||||||
|
@ -178,7 +178,7 @@ func DecideOnCommunicationAfterIntel(comm *network.Communication, fqdn string, r
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Expires: time.Now().Add(nTTL).Unix(),
|
Expires: time.Now().Add(nTTL).Unix(),
|
||||||
}).Init().Save()
|
}).Save()
|
||||||
|
|
||||||
// react
|
// react
|
||||||
select {
|
select {
|
||||||
|
@ -644,7 +644,7 @@ func DecideOnLink(comm *network.Communication, link *network.Link, pkt packet.Pa
|
||||||
ID: "deny",
|
ID: "deny",
|
||||||
Text: "deny",
|
Text: "deny",
|
||||||
})
|
})
|
||||||
n.Init().Save()
|
n.Save()
|
||||||
|
|
||||||
// react
|
// react
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Add table
Reference in a new issue