|
@@ -31,7 +31,7 @@ type AidedWebService interface {
|
|
|
|
|
|
// 功能配置管理
|
|
|
ConfigureWebsocket(ctx context.Context, webId int64) error
|
|
|
- ConfigureProxyProtocol(ctx context.Context, proxy bool, webId int64) error
|
|
|
+ ConfigureProxyProtocol(ctx context.Context, proxy bool, cdnWebId int64) error
|
|
|
ConfigureCCProtection(ctx context.Context, ccConfig v1.CcConfigRequest, webId int64) error
|
|
|
ConfigureWafFirewall(ctx context.Context, webId int64, groupId int) error
|
|
|
|
|
@@ -806,8 +806,8 @@ func (s *aidedWebService) ConfigureWebsocket(ctx context.Context, webId int64) e
|
|
|
}
|
|
|
|
|
|
// ConfigureProxyProtocol 配置代理协议
|
|
|
-func (s *aidedWebService) ConfigureProxyProtocol(ctx context.Context, proxy bool, webId int64) error {
|
|
|
- if err := s.proxy.EditProxy(ctx, webId, v1.ProxyProtocolJSON{
|
|
|
+func (s *aidedWebService) ConfigureProxyProtocol(ctx context.Context, proxy bool, cdnWebId int64) error {
|
|
|
+ if err := s.proxy.EditProxy(ctx, cdnWebId, v1.ProxyProtocolJSON{
|
|
|
IsOn: proxy,
|
|
|
Version: proxyProtocolVersion,
|
|
|
}); err != nil {
|