fix: uid rule only support linux and android

This commit is contained in:
adlyq
2022-04-22 16:51:01 +08:00
parent 3d6aea4c1e
commit 4dd9e199b7
5 changed files with 17 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ var (
once sync.Once
)
func resolveSocketByNetlink(network string, ip netip.Addr, srcPort int) (int32, int32, error) {
return 0, 0, ErrPlatformNotSupport
}
func findProcessName(network string, ip netip.Addr, srcPort int) (string, error) {
once.Do(func() {
if err := initSearcher(); err != nil {