mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-23 00:51:29 +00:00
22 lines
588 B
Go
22 lines
588 B
Go
|
package option
|
||
|
|
||
|
type TrojanInboundOptions struct {
|
||
|
ListenOptions
|
||
|
Users []TrojanUser `json:"users,omitempty"`
|
||
|
TLS *InboundTLSOptions `json:"tls,omitempty"`
|
||
|
}
|
||
|
|
||
|
type TrojanUser struct {
|
||
|
Name string `json:"name"`
|
||
|
Password string `json:"password"`
|
||
|
}
|
||
|
|
||
|
type TrojanOutboundOptions struct {
|
||
|
OutboundDialerOptions
|
||
|
ServerOptions
|
||
|
Password string `json:"password"`
|
||
|
Network NetworkList `json:"network,omitempty"`
|
||
|
TLSOptions *OutboundTLSOptions `json:"tls,omitempty"`
|
||
|
MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"`
|
||
|
}
|