Versions in this module Expand all Collapse all v1 v1.4.1 May 30, 2023 Changes in this version + type ApiConfig struct + APIHost string + CountryRestriction bool + CountryRestrictionConfig *RestrictionConfig + Key string + NodeID int + NodeType string + RuleListPath string + Timeout int + type CertConfig struct + CertDomain string + CertFile string + CertMode string + DNSEnv map[string]string + Email string + KeyFile string + Provider string + RejectUnknownSni bool + type Conf struct + ConnectionConfig *ConnectionConfig + DnsConfigPath string + InboundConfigPath string + LogConfig *LogConfig + NodesConfig []*NodeConfig + OutboundConfigPath string + RouteConfigPath string + func New() *Conf + func (p *Conf) LoadFromPath(filePath string) error + func (p *Conf) Watch(filePath string, reload func()) error + type ConnectionConfig struct + BufferSize int32 + ConnIdle uint32 + DownlinkOnly uint32 + Handshake uint32 + UplinkOnly uint32 + func NewConnectionConfig() *ConnectionConfig + type ControllerConfig struct + CertConfig *CertConfig + DNSType string + DisableGetRule bool + DisableIVCheck bool + DisableSniffing bool + DisableUploadTraffic bool + EnableDNS bool + EnableFallback bool + EnableProxyProtocol bool + EnableReality bool + EnableVless bool + EnableXtls bool + FallBackConfigs []FallBackConfig + LimitConfig LimitConfig + ListenIP string + RealityConfig RealityConfig + SendIP string + type DynamicSpeedLimitConfig struct + ExpireTime int + Periodic int + SpeedLimit int + Traffic int64 + type FallBackConfig struct + Alpn string + Dest string + Path string + ProxyProtocolVer uint64 + SNI string + type IpReportConfig struct + EnableIpSync bool + Periodic int + RecorderConfig *RecorderConfig + RedisConfig *RedisConfig + Type string + type LimitConfig struct + ConnLimit int + DynamicSpeedLimitConfig *DynamicSpeedLimitConfig + EnableDynamicSpeedLimit bool + EnableIpRecorder bool + EnableRealtime bool + IPLimit int + IpRecorderConfig *IpReportConfig + SpeedLimit int + type LogConfig struct + AccessPath string + ErrorPath string + Level string + func NewLogConfig() *LogConfig + type NodeConfig struct + ApiConfig *ApiConfig + ControllerConfig *ControllerConfig + type RealityConfig struct + Dest interface{} + MaxClientVer string + MaxTimeDiff uint64 + MinClientVer string + PrivateKey string + ServerNames []string + ShortIds []string + Xver uint64 + type RecorderConfig struct + Timeout int + Token string + Url string + type RedisConfig struct + Address string + Db int + Expiry int + Password string + type RestrictionConfig struct + IpOtherList []string + List []string