inbound.go 425 B

12345678910111213141516171819202122232425262728
  1. package adapter
  2. import (
  3. M "github.com/sagernet/sing/common/metadata"
  4. )
  5. type Inbound interface {
  6. Service
  7. Type() string
  8. Tag() string
  9. }
  10. type InboundContext struct {
  11. Inbound string
  12. Network string
  13. Source M.Socksaddr
  14. Destination M.Socksaddr
  15. Domain string
  16. Protocol string
  17. // cache
  18. SniffEnabled bool
  19. SniffOverrideDestination bool
  20. SourceGeoIPCode string
  21. GeoIPCode string
  22. }