mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
29 lines
425 B
Go
29 lines
425 B
Go
package adapter
|
|
|
|
import (
|
|
M "github.com/sagernet/sing/common/metadata"
|
|
)
|
|
|
|
type Inbound interface {
|
|
Service
|
|
Type() string
|
|
Tag() string
|
|
}
|
|
|
|
type InboundContext struct {
|
|
Inbound string
|
|
Network string
|
|
Source M.Socksaddr
|
|
Destination M.Socksaddr
|
|
Domain string
|
|
Protocol string
|
|
|
|
// cache
|
|
|
|
SniffEnabled bool
|
|
SniffOverrideDestination bool
|
|
|
|
SourceGeoIPCode string
|
|
GeoIPCode string
|
|
}
|