2023-07-23 14:42:19 +08:00
|
|
|
package option
|
|
|
|
|
2024-11-18 18:55:34 +08:00
|
|
|
import "github.com/sagernet/sing/common/json/badoption"
|
|
|
|
|
2023-07-23 14:42:19 +08:00
|
|
|
type TUICInboundOptions struct {
|
|
|
|
ListenOptions
|
2024-11-18 18:55:34 +08:00
|
|
|
Users []TUICUser `json:"users,omitempty"`
|
|
|
|
CongestionControl string `json:"congestion_control,omitempty"`
|
|
|
|
AuthTimeout badoption.Duration `json:"auth_timeout,omitempty"`
|
|
|
|
ZeroRTTHandshake bool `json:"zero_rtt_handshake,omitempty"`
|
|
|
|
Heartbeat badoption.Duration `json:"heartbeat,omitempty"`
|
2023-12-11 18:36:06 +08:00
|
|
|
InboundTLSOptionsContainer
|
2023-07-23 14:42:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type TUICUser struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
UUID string `json:"uuid,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TUICOutboundOptions struct {
|
|
|
|
DialerOptions
|
|
|
|
ServerOptions
|
2024-11-18 18:55:34 +08:00
|
|
|
UUID string `json:"uuid,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
CongestionControl string `json:"congestion_control,omitempty"`
|
|
|
|
UDPRelayMode string `json:"udp_relay_mode,omitempty"`
|
|
|
|
UDPOverStream bool `json:"udp_over_stream,omitempty"`
|
|
|
|
ZeroRTTHandshake bool `json:"zero_rtt_handshake,omitempty"`
|
|
|
|
Heartbeat badoption.Duration `json:"heartbeat,omitempty"`
|
|
|
|
Network NetworkList `json:"network,omitempty"`
|
2023-12-11 18:36:06 +08:00
|
|
|
OutboundTLSOptionsContainer
|
2023-07-23 14:42:19 +08:00
|
|
|
}
|