Add android package rules support in tun routing

This commit is contained in:
世界
2022-08-15 11:40:49 +08:00
parent 3157593b6b
commit cd5e7055d2
16 changed files with 100 additions and 188 deletions

View File

@@ -15,8 +15,8 @@ type linuxSearcher struct {
logger log.ContextLogger
}
func NewSearcher(logger log.ContextLogger) (Searcher, error) {
return &linuxSearcher{logger}, nil
func NewSearcher(config Config) (Searcher, error) {
return &linuxSearcher{config.Logger}, nil
}
func (s *linuxSearcher) FindProcessInfo(ctx context.Context, network string, srcIP netip.Addr, srcPort int) (*Info, error) {