Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
SSHServer string
SSHUser string
SSHPassword string
SSHKeyFile string
HTTPUpstream string // 强制 HTTP 上游 (原 SSHTargetDial)
SSHPort string // 添加SSH端口配置
SocksAddr string // SOCKS5 监听地址
TunMode bool // 是否启用 TUN 模式
TunCIDR string // TUN 设备 CIDR (e.g. 10.0.0.1/24)
TunRoute []string // 需要路由到 TUN 的网段
TunGlobal bool // 是否开启全局模式
SubnetAliases []SubnetAlias // 网段/IP映射规则 (NAT)
JumpHosts []string // 跳板机列表
Timeout time.Duration
Verbose bool
LogFile string
InteractiveAuth bool
SystemProxy bool // 是否启用系统代理
RuleFile string
}
Config 存储应用配置
func (*Config) GetJumpHostInfo ¶ added in v0.3.0
GetJumpHostInfo 获取跳板机信息
Click to show internal directories.
Click to hide internal directories.