github.com/sagernet/sing-box@v1.9.0-rc.20/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 InboundTLSOptionsContainer 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 UDPOverTCP *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 OutboundTLSOptionsContainer 33 Path string `json:"path,omitempty"` 34 Headers HTTPHeader `json:"headers,omitempty"` 35 }