Fix logging in firewall api for allowed-clients

This commit is contained in:
Patrick Pacher 2024-03-27 13:56:16 +01:00
parent 90535c5c86
commit 8e6a99ba14

View file

@ -168,10 +168,7 @@ func authenticateAPIRequest(ctx context.Context, pktInfo *packet.Info) (retry bo
// check if the client has been allowed by flag
if slices.Contains(allowedClients, realPath) {
log.Infof("filter: access to portmaster api allowed for configured client: %s", realPath)
return false, nil
} else if len(allowedClients) > 0 {
log.Warningf("filter: process is not in the allowed clients list: %s (list=%s)", realPath, allowedClients)
}
if strings.HasPrefix(realPath, authenticatedPath) {