Refactor adapter

This commit is contained in:
世界
2022-07-01 19:34:02 +08:00
parent 60691819b1
commit 9f4c0ff624
32 changed files with 939 additions and 1201 deletions

View File

@@ -1,7 +1,22 @@
package adapter
import (
"net/netip"
M "github.com/sagernet/sing/common/metadata"
)
type Inbound interface {
Service
Type() string
Tag() string
}
type InboundContext struct {
Source netip.AddrPort
Destination M.Socksaddr
Inbound string
Network string
Protocol string
Domain string
}