github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/simple.go (about) 1 package option 2 3 import "github.com/sagernet/sing/common/auth" 4 5 type SocksInboundOptions struct { 6 ListenOptions 7 Users []auth.User `json:"users,omitempty"` 8 } 9 10 type HTTPMixedInboundOptions struct { 11 ListenOptions 12 Users []auth.User `json:"users,omitempty"` 13 SetSystemProxy bool `json:"set_system_proxy,omitempty"` 14 TLS *InboundTLSOptions `json:"tls,omitempty"` 15 } 16 17 type SocksOutboundOptions struct { 18 DialerOptions 19 ServerOptions 20 Version string `json:"version,omitempty"` 21 Username string `json:"username,omitempty"` 22 Password string `json:"password,omitempty"` 23 Network NetworkList `json:"network,omitempty"` 24 UDPOverTCPOptions *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"` 25 } 26 27 type HTTPOutboundOptions struct { 28 DialerOptions 29 ServerOptions 30 Username string `json:"username,omitempty"` 31 Password string `json:"password,omitempty"` 32 TLS *OutboundTLSOptions `json:"tls,omitempty"` 33 Path string `json:"path,omitempty"` 34 Headers map[string]Listable[string] `json:"headers,omitempty"` 35 }