Files
sing-box-extended-mirror/option/simple.go
T

41 lines
1.2 KiB
Go
Raw Normal View History

2022-07-25 11:29:46 +08:00
package option
2024-11-18 18:55:34 +08:00
import (
"github.com/sagernet/sing/common/auth"
"github.com/sagernet/sing/common/json/badoption"
)
2022-07-25 11:29:46 +08:00
type SocksInboundOptions struct {
ListenOptions
2025-03-18 14:21:08 +08:00
Users []auth.User `json:"users,omitempty"`
DomainResolver *DomainResolveOptions `json:"domain_resolver,omitempty"`
2022-07-25 11:29:46 +08:00
}
type HTTPMixedInboundOptions struct {
ListenOptions
2025-03-18 14:21:08 +08:00
Users []auth.User `json:"users,omitempty"`
DomainResolver *DomainResolveOptions `json:"domain_resolver,omitempty"`
SetSystemProxy bool `json:"set_system_proxy,omitempty"`
2023-12-11 18:36:06 +08:00
InboundTLSOptionsContainer
2022-07-25 11:29:46 +08:00
}
2024-11-02 00:39:02 +08:00
type SOCKSOutboundOptions struct {
2022-09-03 12:55:10 +08:00
DialerOptions
2022-07-25 11:29:46 +08:00
ServerOptions
Version string `json:"version,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Network NetworkList `json:"network,omitempty"`
UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
2022-07-25 11:29:46 +08:00
}
type HTTPOutboundOptions struct {
2022-09-03 12:55:10 +08:00
DialerOptions
2022-07-25 11:29:46 +08:00
ServerOptions
2023-12-11 18:36:06 +08:00
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
OutboundTLSOptionsContainer
2024-11-18 18:55:34 +08:00
Path string `json:"path,omitempty"`
Headers badoption.HTTPHeader `json:"headers,omitempty"`
2022-07-25 11:29:46 +08:00
}