Inbound rule support

This commit is contained in:
世界
2022-07-02 14:07:50 +08:00
parent 737a61be66
commit 0e9bd9b091
34 changed files with 622 additions and 247 deletions

View File

@@ -1,8 +1,6 @@
package adapter
import (
"net/netip"
M "github.com/sagernet/sing/common/metadata"
)
@@ -13,10 +11,10 @@ type Inbound interface {
}
type InboundContext struct {
Source netip.AddrPort
Destination M.Socksaddr
Inbound string
Network string
Protocol string
Source M.Socksaddr
Destination M.Socksaddr
Domain string
Protocol string
}