Versions in this module Expand all Collapse all v0 v0.5.1 Jul 20, 2023 Changes in this version + type SSHConfig struct + IdentityKey string + IdentityKeyDir string + Password string + RemoteAddr string + Timeout time.Duration + User string + func DefaultSSHConfig() *SSHConfig + func (c *SSHConfig) NewSSHClient() (*ssh.Client, error) + func (c *SSHConfig) ParseIdentityKey() []ssh.AuthMethod + func (c *SSHConfig) SSHPassword() ssh.AuthMethod + func (c *SSHConfig) SetSSHHost() string + func (c *SSHConfig) SetSSHUser() string + type SSHTun struct + Client *ssh.Client + ListenAddr string + TotalDownload int64 + TotalUpload int64 + func NewSSHTun(c *SSHConfig) (*SSHTun, error) + func (st *SSHTun) Close() + func (st *SSHTun) DisableSystemProxy() + func (st *SSHTun) EnableSystemProxy() (ok bool) + func (st *SSHTun) PacInspect() string + func (st *SSHTun) PacOff() + func (st *SSHTun) PacOn(rule string) (ok bool) + func (st *SSHTun) Serve() + func (st *SSHTun) Stat()