github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/trojan.go (about) 1 package option 2 3 type TrojanInboundOptions struct { 4 ListenOptions 5 Users []TrojanUser `json:"users,omitempty"` 6 TLS *InboundTLSOptions `json:"tls,omitempty"` 7 Fallback *ServerOptions `json:"fallback,omitempty"` 8 FallbackForALPN map[string]*ServerOptions `json:"fallback_for_alpn,omitempty"` 9 Transport *V2RayTransportOptions `json:"transport,omitempty"` 10 } 11 12 type TrojanUser struct { 13 Name string `json:"name"` 14 Password string `json:"password"` 15 } 16 17 type TrojanOutboundOptions struct { 18 DialerOptions 19 ServerOptions 20 Password string `json:"password"` 21 Network NetworkList `json:"network,omitempty"` 22 TLS *OutboundTLSOptions `json:"tls,omitempty"` 23 Multiplex *MultiplexOptions `json:"multiplex,omitempty"` 24 Transport *V2RayTransportOptions `json:"transport,omitempty"` 25 }