Versions in this module Expand all Collapse all v1 v1.7.8 Nov 20, 2023 Changes in this version + var UserAllowAll = regexp.MustCompile("") + 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 struct + Version string + func DecodeConfig(b []byte) (*Config, error) + type Remote struct + LocalHost string + LocalPort string + LocalProto string + RemoteHost string + RemotePort string + RemoteProto string + Reverse bool + Socks bool + Stdio bool + func DecodeRemote(s string) (*Remote, error) + func (r Remote) CanListen() bool + func (r Remote) Encode() string + func (r Remote) Local() string + func (r Remote) Remote() string + func (r Remote) String() string + func (r Remote) UserAddr() string + type Remotes []*Remote + func (rs Remotes) Encode() []string + func (rs Remotes) Reversed(reverse bool) Remotes + type User struct + Addrs []*regexp.Regexp + Name string + Pass string + func (u *User) HasAccess(addr string) bool + type UserIndex struct + func NewUserIndex(logger *cio.Logger) *UserIndex + func (u *UserIndex) LoadUsers(configFile string) error + type Users struct + func NewUsers() *Users + func (u *Users) AddUser(user *User) + func (u *Users) Del(key string) + func (u *Users) Get(key string) (*User, bool) + func (u *Users) Len() int + func (u *Users) Reset(users []*User) + func (u *Users) Set(key string, user *User)