tuic.go 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package option
  2. type TUICInboundOptions struct {
  3. ListenOptions
  4. Users []TUICUser `json:"users,omitempty"`
  5. CongestionControl string `json:"congestion_control,omitempty"`
  6. AuthTimeout Duration `json:"auth_timeout,omitempty"`
  7. ZeroRTTHandshake bool `json:"zero_rtt_handshake,omitempty"`
  8. Heartbeat Duration `json:"heartbeat,omitempty"`
  9. InboundTLSOptionsContainer
  10. }
  11. type TUICUser struct {
  12. Name string `json:"name,omitempty"`
  13. UUID string `json:"uuid,omitempty"`
  14. Password string `json:"password,omitempty"`
  15. }
  16. type TUICOutboundOptions struct {
  17. DialerOptions
  18. ServerOptions
  19. UUID string `json:"uuid,omitempty"`
  20. Password string `json:"password,omitempty"`
  21. CongestionControl string `json:"congestion_control,omitempty"`
  22. UDPRelayMode string `json:"udp_relay_mode,omitempty"`
  23. UDPOverStream bool `json:"udp_over_stream,omitempty"`
  24. ZeroRTTHandshake bool `json:"zero_rtt_handshake,omitempty"`
  25. Heartbeat Duration `json:"heartbeat,omitempty"`
  26. Network NetworkList `json:"network,omitempty"`
  27. OutboundTLSOptionsContainer
  28. }