Documentation
¶
Index ¶
- type MarkRouter
- type XrayRouter
- func (r *XrayRouter) Apply(chain string, info proxy.ChainInfo) error
- func (r *XrayRouter) ClearAppliedState(table string, clearV4, clearV6 bool)
- func (r *XrayRouter) Remove(chain string) error
- func (r *XrayRouter) ResetStateFamily(resetV4, resetV6 bool)
- func (r *XrayRouter) Restore(info map[string]proxy.ChainInfo, isRunning func(string) bool, ...)
- func (r *XrayRouter) RoutingIntact() bool
- func (r *XrayRouter) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkRouter ¶ added in v1.0.1
type MarkRouter struct {
// contains filtered or unexported fields
}
func NewMarkRouter ¶ added in v1.0.1
func NewMarkRouter(ipt *firewall.IptablesManager, lanInterfaces []string) *MarkRouter
func (*MarkRouter) Apply ¶ added in v1.0.1
func (r *MarkRouter) Apply(vpnType, chain string, resolveIface func() (string, error)) error
func (*MarkRouter) Intact ¶ added in v1.0.1
func (r *MarkRouter) Intact(vpnType, chain string) bool
func (*MarkRouter) Remove ¶ added in v1.0.1
func (r *MarkRouter) Remove(vpnType, chain string) error
type XrayRouter ¶
type XrayRouter struct {
// contains filtered or unexported fields
}
func NewXrayRouter ¶
func NewXrayRouter(ipt *firewall.IptablesManager, lanInterfaces []string) *XrayRouter
func (*XrayRouter) ClearAppliedState ¶ added in v1.0.1
func (r *XrayRouter) ClearAppliedState(table string, clearV4, clearV6 bool)
func (*XrayRouter) Remove ¶
func (r *XrayRouter) Remove(chain string) error
func (*XrayRouter) ResetStateFamily ¶ added in v0.0.4
func (r *XrayRouter) ResetStateFamily(resetV4, resetV6 bool)
func (*XrayRouter) RoutingIntact ¶ added in v1.0.1
func (r *XrayRouter) RoutingIntact() bool
func (*XrayRouter) Shutdown ¶
func (r *XrayRouter) Shutdown()
Click to show internal directories.
Click to hide internal directories.