sing-box/adapter/inbound.go

23 lines
319 B
Go
Raw Normal View History

2022-06-30 13:27:56 +00:00
package adapter
2022-07-01 11:34:02 +00:00
import (
"net/netip"
M "github.com/sagernet/sing/common/metadata"
)
2022-06-30 13:27:56 +00:00
type Inbound interface {
Service
Type() string
Tag() string
}
2022-07-01 11:34:02 +00:00
type InboundContext struct {
Source netip.AddrPort
Destination M.Socksaddr
Inbound string
Network string
Protocol string
Domain string
}