Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDenyPorts = []string{
"22",
"25",
"135-139",
"445",
"3389",
"5900",
}
Functions ¶
func ValidatePort ¶
Types ¶
type Config ¶
type Config struct {
ListenAddr string
CertPath string
KeyPath string
SelfSigned bool
DenyPorts []PortRange
AllowRange PortRange
Verbose bool
AccessLog bool
ReadHeaderTimeout int
IdleTimeout int
WriteTimeout int
DialTimeout int
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) IsPortAllowed ¶
func (*Config) LoadFromEnv ¶
func (c *Config) LoadFromEnv()
Click to show internal directories.
Click to hide internal directories.