2022-08-31 14:21:53 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ShadowTLSInboundOptions struct {
|
|
|
|
ListenOptions
|
2023-02-21 16:07:08 +08:00
|
|
|
Version int `json:"version,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
Users []ShadowTLSUser `json:"users,omitempty"`
|
|
|
|
Handshake ShadowTLSHandshakeOptions `json:"handshake,omitempty"`
|
|
|
|
HandshakeForServerName map[string]ShadowTLSHandshakeOptions `json:"handshake_for_server_name,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSUser struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
2022-08-31 14:21:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSHandshakeOptions struct {
|
|
|
|
ServerOptions
|
|
|
|
DialerOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSOutboundOptions struct {
|
2022-09-03 12:55:10 +08:00
|
|
|
DialerOptions
|
2022-08-31 14:21:53 +08:00
|
|
|
ServerOptions
|
2022-10-06 22:47:11 +08:00
|
|
|
Version int `json:"version,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
2022-08-31 14:21:53 +08:00
|
|
|
}
|