2022-08-31 06:21:53 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ShadowTLSInboundOptions struct {
|
|
|
|
ListenOptions
|
2023-02-21 08:07:08 +00: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"`
|
2023-02-21 08:34:41 +00:00
|
|
|
StrictMode bool `json:"strict_mode,omitempty"`
|
2023-02-21 08:07:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSUser struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
2022-08-31 06:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSHandshakeOptions struct {
|
|
|
|
ServerOptions
|
|
|
|
DialerOptions
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShadowTLSOutboundOptions struct {
|
2022-09-03 04:55:10 +00:00
|
|
|
DialerOptions
|
2022-08-31 06:21:53 +00:00
|
|
|
ServerOptions
|
2023-12-11 10:36:06 +00:00
|
|
|
Version int `json:"version,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
OutboundTLSOptionsContainer
|
2022-08-31 06:21:53 +00:00
|
|
|
}
|