Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: query strength && dst IP "assigned" #12

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

brianchennn
Copy link
Contributor

Fix 2 Issues

  • use queryStrength = 2 to do case-insensitive query to MongoDB
  • Destination IP should be "assigned" rather than "any"

Copy link
Collaborator

@tim-ywliu tim-ywliu Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add as below and replace all "any" & "assigned" with const.

const (
	Any      string = "any"
	Assigned string = "assigned"
)

@@ -168,7 +168,7 @@ func Encode(r *IPFilterRule) (string, error) {
return "", flowDescErrorf("destination addresses format error %s", dst)
}
} else {
ipFilterRuleStr = append(ipFilterRuleStr, "any")
ipFilterRuleStr = append(ipFilterRuleStr, "assigned")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rollback here

@tim-ywliu tim-ywliu merged commit 308f623 into free5gc:main Dec 5, 2023
2 checks passed
brianchennn added a commit to brianchennn/util that referenced this pull request Aug 13, 2024
* fix: RestfulAPIPutOne( ... , opt)

* fix: destination IP (any -> assigned)

* refactor: move collation into if scope

* add const Any, Assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants