Documentation ¶
Index ¶
- Variables
- func EncodeConfig(c Config) []byte
- func Env(name string) string
- func EnvDuration(name string, def time.Duration) time.Duration
- func EnvInt(name string, def int) int
- func L4Proto(s string) (head, proto string)
- func ParseAuth(auth string) (string, string)
- type Config
- type Remote
- type Remotes
- type User
- type UserIndex
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAllowAll = regexp.MustCompile("")
Functions ¶
func EnvDuration ¶
EnvDuration 前缀为 CHISEL_ 的时间环境变量
Types ¶
type Remote ¶
type Remote struct { // forwarding host 指的是chisel server上的host LocalHost string // forwarding port 指的是chisel server上的port LocalPort string // 指的是chisel server上的协议 LocalProto string // target host 指的是要代理的服务的host RemoteHost string // target port 指的是要代理的服务的port RemotePort string // 指的是要代理的服务的协议 RemoteProto string Socks bool // 反向端口转发,是否开启客户端指定反向端口转发远程服务 Reverse bool // 使用标准输入输出 Stdio bool }
Remote 本地与远程服务的映射
Click to show internal directories.
Click to hide internal directories.