v2ray.go 844 B

12345678910111213141516171819202122232425262728
  1. package conf
  2. /*
  3. import (
  4. "encoding/json"
  5. "errors"
  6. "io"
  7. "v2ray.com/core/app/dns"
  8. "v2ray.com/core/app/router"
  9. "v2ray.com/core/common"
  10. v2net "v2ray.com/core/common/net"
  11. "v2ray.com/core/transport"
  12. "v2ray.com/core/transport/internet"
  13. )
  14. type Config struct {
  15. Port uint16 `json:"port"` // Port of this Point server.
  16. LogConfig *LogConfig `json:"log"`
  17. RouterConfig *router.Config `json:"routing"`
  18. DNSConfig *dns.Config `json:"dns"`
  19. InboundConfig *InboundConnectionConfig `json:"inbound"`
  20. OutboundConfig *OutboundConnectionConfig `json:"outbound"`
  21. InboundDetours []*InboundDetourConfig `json:"inboundDetour"`
  22. OutboundDetours []*OutboundDetourConfig `json:"outboundDetour"`
  23. Transport *transport.Config `json:"transport"`
  24. }
  25. */