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