Versions in this module Expand all Collapse all v1 v1.2.3 Dec 7, 2024 Changes in this version + var AEADMethod = map[shadowsocks.CipherType]uint8 + func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.InboundHandlerConfig, error) + func OutboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.OutboundHandlerConfig, error) + type AutoSpeedLimitConfig struct + Limit int + LimitDuration int + LimitSpeed int + WarnTimes int + type Config struct + AutoSpeedLimitConfig *AutoSpeedLimitConfig + CertConfig *mylego.CertConfig + DNSType string + DeviceOnlineMinTraffic int + DisableGetRule bool + DisableIVCheck bool + DisableLocalREALITYConfig bool + DisableSniffing bool + DisableUploadTraffic bool + EnableDNS bool + EnableFallback bool + EnableProxyProtocol bool + EnableREALITY bool + FallBackConfigs []*FallBackConfig + GlobalDeviceLimitConfig *limiter.GlobalDeviceLimitConfig + ListenIP string + REALITYConfigs *REALITYConfig + SendIP string + UpdatePeriodic int + type Controller struct + Tag string + func New(server *core.Instance, api api.API, config *Config, panelType string) *Controller + func (c *Controller) AddInboundLimiter(tag string, nodeSpeedLimit uint64, userList *[]api.UserInfo, ...) error + func (c *Controller) Close() error + func (c *Controller) DeleteInboundLimiter(tag string) error + func (c *Controller) GetDetectResult(tag string) (*[]api.DetectResult, error) + func (c *Controller) GetOnlineDevice(tag string) (*[]api.OnlineUser, error) + func (c *Controller) Start() error + func (c *Controller) UpdateInboundLimiter(tag string, updatedUserList *[]api.UserInfo) error + func (c *Controller) UpdateRule(tag string, newRuleList []api.DetectRule) error + type FallBackConfig struct + Alpn string + Dest string + Path string + ProxyProtocolVer uint64 + SNI string + type LimitInfo struct + type REALITYConfig struct + Dest string + MaxClientVer string + MaxTimeDiff uint64 + MinClientVer string + PrivateKey string + ProxyProtocolVer uint64 + ServerNames []string + ShortIds []string + Show bool