Add check for special android ip in online status check

This commit is contained in:
Vladimir Stoilov
2023-04-14 11:09:20 +02:00
parent 394dbf4d4b
commit 4784799541
4 changed files with 37 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ import (
"github.com/safing/portbase/utils/debug"
_ "github.com/safing/portmaster/core/base"
"github.com/safing/portmaster/intel"
"github.com/safing/portmaster/netenv"
)
var module *modules.Module
@@ -25,6 +26,9 @@ func init() {
}
func prep() error {
// Set DNS test connectivity function for the online status check
netenv.DNSTestQueryFunc = testConnectivity
intel.SetReverseResolver(ResolveIPAndValidate)
if err := registerAPI(); err != nil {