Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DnsCache = dns.New(time.Minute, dns.PolicyOption(dns.PolicyRandom)) // App default config App = &Config{ Inbound: &Server{ Host: "0.0.0.0", Port: 1080, Timeout: 30 * time.Second, TLSConf: &tls.Config{ MinVersion: tls.VersionTLS13, }, }, Dashboard: &Server{ Timeout: 30 * time.Second, TLSConf: &tls.Config{ MinVersion: tls.VersionTLS13, }, }, Outbound: &Server{ Timeout: 30 * time.Second, TLSConf: &tls.Config{ MinVersion: tls.VersionTLS13, }, }, Host: make(map[string][]string), Log: &Log{ Level: "info", MaxBackups: 7, MaxSize: 500, MaxAge: 28, Compress: true, }, } )
Functions ¶
Types ¶
type Server ¶ added in v1.0.4
type Server struct { Host string `yaml:"Host"` Port int64 `yaml:"Port"` Token string `yaml:"Token"` Timeout time.Duration `yaml:"Timeout"` Interface string `yaml:"Interface"` Static string `yaml:"Static"` // server inbound only Pac string `json:"Pac"` // client inbound only TLS *TLS `yaml:""` // 证书 // 证书 TLSConf *tls.Config }
Click to show internal directories.
Click to hide internal directories.