Skip to content

Commit

Permalink
1.2.9 add WAF export and import
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyale committed Apr 3, 2022
1 parent 2d83534 commit 654e923
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var (
// IsPrimary i.e. Is Primary Node
IsPrimary bool
// Version of JANUSEC
Version = "1.2.8"
Version = "1.2.9"
// NodeKey share with all nodes
NodeKey []byte
)
Expand Down
2 changes: 1 addition & 1 deletion firewall/group_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func InitGroupPolicy() {
}

// GetGroupPolicies ...
func GetGroupPolicies(appID int64) ([]*models.GroupPolicy, error) {
func GetGroupPolicies() ([]*models.GroupPolicy, error) {
return groupPolicies, nil
}

Expand Down
6 changes: 2 additions & 4 deletions gateway/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ func AdminAPIHandlerFunc(w http.ResponseWriter, r *http.Request) {
obj = nil
err = firewall.UpdateCCPolicy(param, clientIP, authUser)
case "get_group_policies":
appID := int64(param["id"].(float64))
obj, err = firewall.GetGroupPolicies(appID)
obj, err = firewall.GetGroupPolicies()
case "get_group_policy":
id := int64(param["id"].(float64))
obj, err = firewall.GetGroupPolicyByID(id)
Expand Down Expand Up @@ -296,8 +295,7 @@ func ReplicaAPIHandlerFunc(w http.ResponseWriter, r *http.Request) {
case "get_cc_policies":
obj, err = firewall.GetCCPolicies()
case "get_group_policies":
appID := int64(param["id"].(float64))
obj, err = firewall.GetGroupPolicies(appID)
obj, err = firewall.GetGroupPolicies()
case "get_ip_policies":
obj, err = firewall.GetIPPolicies()
case "get_vuln_types":
Expand Down
2 changes: 1 addition & 1 deletion release_batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ printf "Creating installation package\n"
printf "Checklist:\n"
printf "* Angular Admin Version Check. \n"
printf "* Janusec Version Check. \n"
version="1.2.8"
version="1.2.9"
printf "Version: ${version} \n"

read -r -p "Are You Sure? [Y/n] " option
Expand Down

0 comments on commit 654e923

Please sign in to comment.