Merge pull request #995 from safing/fix/build-error

Build for all platforms in CI test
This commit is contained in:
Daniel Hovie
2022-11-11 15:04:09 +01:00
committed by GitHub
5 changed files with 20 additions and 4 deletions

View File

@@ -52,3 +52,6 @@ jobs:
- name: Run tests
run: ./test --test-only
- name: Build Portmaster Core
run: ./cmds/portmaster-core/pack

View File

@@ -4,6 +4,7 @@ package interception
import (
"github.com/safing/portbase/log"
"github.com/safing/portmaster/network"
"github.com/safing/portmaster/network/packet"
)
@@ -22,3 +23,8 @@ func stop() error {
func ResetVerdictOfAllConnections() error {
return nil
}
// UpdateVerdictOfConnection updates the verdict of the given connection in the OS integration.
func UpdateVerdictOfConnection(conn *network.Connection) error {
return nil
}

View File

@@ -21,7 +21,7 @@ func ResetVerdictOfAllConnections() error {
return nfq.DeleteAllMarkedConnection()
}
// UpdateVerdictOfConnection deletes the verdict of specific connection so in can be initialized again with the next packet.
// UpdateVerdictOfConnection deletes the verdict of the given connection so it can be initialized again with the next packet.
func UpdateVerdictOfConnection(conn *network.Connection) error {
return nfq.DeleteMarkedConnection(conn)
}

View File

@@ -41,7 +41,7 @@ func ResetVerdictOfAllConnections() error {
return windowskext.ClearCache()
}
// UpdateVerdictOfConnection updates the verdict of specific connection in the kernel extension.
// UpdateVerdictOfConnection updates the verdict of the given connection in the kernel extension.
func UpdateVerdictOfConnection(conn *network.Connection) error {
return windowskext.UpdateVerdict(conn)
}

View File

@@ -255,12 +255,19 @@ func registerConfiguration() error { //nolint:maintidx
- By filter list - use the filterlist ID prefixed with "L:": "L:MAL"
- Match anything: "*"
Additionally, you may supply a protocol and port just behind that using numbers ("6/80") or names ("TCP/HTTP").
Additionally, you may supply a protocol and port using this format: "<host> <IP protocol>/<port>".
Protocols and ports may be specified using numbers ("6/80") or names ("TCP/HTTP").
Port ranges are defined by using a hyphen ("TCP/1-1024"). Omit the port to match any.
Use a "*" for matching any protocol. If matching ports with any protocol, protocols without ports will not match.
Rules with protocol and port definitions only match if the protocol and port also match.
Ports are always compared to the destination port, thus, the local listening port for incoming connections.
Examples: "192.168.0.1 TCP/HTTP", "LAN UDP/50000-55000", "example.com */HTTPS", "1.1.1.1 ICMP"
Examples:
- "192.168.0.1 TCP/HTTP"
- "LAN UDP/50000-55000"
- "example.com */HTTPS"
- "1.1.1.1 ICMP"
Important: DNS Requests are only matched against domain and filter list rules, all others require an IP address and are checked only with the following IP connection.
`, `"`, "`")