diff --git a/firewall/interception/interception_windows.go b/firewall/interception/interception_windows.go index 57db89f3..3844022e 100644 --- a/firewall/interception/interception_windows.go +++ b/firewall/interception/interception_windows.go @@ -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() } diff --git a/firewall/master.go b/firewall/master.go index 9a752cae..20730351 100644 --- a/firewall/master.go +++ b/firewall/master.go @@ -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 {