修复DDoS防护规则无法生成的Bug

This commit is contained in:
刘祥超
2022-06-21 10:02:52 +08:00
parent 9ce516caeb
commit 0d5540295f
3 changed files with 8 additions and 4 deletions

View File

@@ -406,7 +406,7 @@ func (this *APIStream) handleCheckLocalFirewall(message *pb.NodeStreamMessage) e
"version": version,
}
var protectionConfig = sharedNodeConfig.DDOSProtection
var protectionConfig = sharedNodeConfig.DDoSProtection
err = firewalls.SharedDDoSProtectionManager.Apply(protectionConfig)
if err != nil {
this.replyFail(message.RequestId, dataMessage.Name+"was installed, but apply DDoS protection config failed: "+err.Error())