Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// All components and Inbounds will be started and closed
Components *common.Components
Inbounds []interface{}
Dispatcher *dispatcher.Dispatcher
Geo *geo.GeoWrapper
Subscription *subscription.SubscriptionManager
DialerFactory transport.DialerFactory
Policy *policy.Policy
InboundManager *proxy.InboundManager
UserLogger *userlogger.UserLogger
OutboundManager *outbound.Manager
// might be nil
DB Db
Tetser *tester.Tester
Router *router.RouterWrapper
Selectors *selector.Selectors
Logger *logger.Logger
// used to handle dns requests
Dns *dns.Dns
// used to resolve domains when dial, typically node address and domains of direct connection
IPResolver i.IPResolver
// used to resolve domains of proxied connections, typically used for converting domain to real ip for udp connections
IPResolverForRequestAddress i.IPResolver
IPToDomain *dns.IPToDomain
FakeDnsEnabled atomic.Bool
AllFakeDns *dns.AllFakeDns
Hysteria2RejectQuic bool
}
func (*Client) CreateHandler ¶
func (c *Client) CreateHandler(h *configs.HandlerConfig, landHandlerIds []*xsqlite.OutboundHandler) (i.Outbound, error)
func (*Client) GetFakeDnsEnabled ¶
func (*Client) SetFakeDnsEnabled ¶
Click to show internal directories.
Click to hide internal directories.