mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
29 lines
960 B
Go
29 lines
960 B
Go
package option
|
|
|
|
type ShadowTLSInboundOptions struct {
|
|
ListenOptions
|
|
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"`
|
|
}
|
|
|
|
type ShadowTLSHandshakeOptions struct {
|
|
ServerOptions
|
|
DialerOptions
|
|
}
|
|
|
|
type ShadowTLSOutboundOptions struct {
|
|
DialerOptions
|
|
ServerOptions
|
|
Version int `json:"version,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
TLS *OutboundTLSOptions `json:"tls,omitempty"`
|
|
}
|