Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 Index ¶ type Handler func New(logger logger.Logger) *Handler func (h *Handler) Run(ctx context.Context) error func (h *Handler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) func (h *Handler) SetAddresses(serverAddress net.IP, userResolverIp []net.IP, vpnResolverIp net.IP, ...) func (h *Handler) StopForward() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler struct { // contains filtered or unexported fields } func New ¶ func New(logger logger.Logger) *Handler func (*Handler) Run ¶ func (h *Handler) Run(ctx context.Context) error listen and serve func (*Handler) ServeDNS ¶ func (h *Handler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) func (*Handler) SetAddresses ¶ func (h *Handler) SetAddresses(serverAddress net.IP, userResolverIp []net.IP, vpnResolverIp net.IP, vpnNetwork net.IPNet) func (*Handler) StopForward ¶ func (h *Handler) StopForward() Source Files ¶ View all Source files handler_darwin.go Click to show internal directories. Click to hide internal directories.