1
0

shadowtls.go 1.0 KB

1234567891011121314151617181920212223242526272829
  1. package option
  2. type ShadowTLSInboundOptions struct {
  3. ListenOptions
  4. Version int `json:"version,omitempty"`
  5. Password string `json:"password,omitempty"`
  6. Users []ShadowTLSUser `json:"users,omitempty"`
  7. Handshake ShadowTLSHandshakeOptions `json:"handshake,omitempty"`
  8. HandshakeForServerName map[string]ShadowTLSHandshakeOptions `json:"handshake_for_server_name,omitempty"`
  9. StrictMode bool `json:"strict_mode,omitempty"`
  10. }
  11. type ShadowTLSUser struct {
  12. Name string `json:"name,omitempty"`
  13. Password string `json:"password,omitempty"`
  14. }
  15. type ShadowTLSHandshakeOptions struct {
  16. ServerOptions
  17. DialerOptions
  18. }
  19. type ShadowTLSOutboundOptions struct {
  20. DialerOptions
  21. ServerOptions
  22. Version int `json:"version,omitempty"`
  23. Password string `json:"password,omitempty"`
  24. TLS *OutboundTLSOptions `json:"tls,omitempty"`
  25. }