Documentation
¶
Index ¶
- Variables
- func Stop(r *Redsocks)
- type Config
- type Redsocks
- func (r *Redsocks) CheckIsEnabled() bool
- func (r *Redsocks) Execute(command string) error
- func (r *Redsocks) ForceExecute(command string) error
- func (r *Redsocks) GenerateConfig() error
- func (r *Redsocks) RuleDirectAdd(host string)
- func (r *Redsocks) RuleDirectCheck(host string) bool
- func (r *Redsocks) Start()
- func (r *Redsocks) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Loop = true DefaultConfig = &Config{ LogInfo: "off", LogDebug: "off", LogOutput: libutils.RealPath("redsocks.log"), LocalHost: "0.0.0.0", LocalPort: "9680", Host: "127.0.0.1", Port: "9693", Type: "socks5", Username: "", Password: "", ConfigOutput: libutils.RealPath("redsocks.conf"), } )
Functions ¶
Types ¶
type Redsocks ¶
func (*Redsocks) CheckIsEnabled ¶
func (*Redsocks) ForceExecute ¶
func (*Redsocks) GenerateConfig ¶
func (*Redsocks) RuleDirectAdd ¶
func (*Redsocks) RuleDirectCheck ¶
Click to show internal directories.
Click to hide internal directories.