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 vpc acl inconsistent when port is ALL #2135

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

hellertang
Copy link
Collaborator

No description provided.

@hellertang hellertang added the run check run check label Sep 19, 2023
if info.EgressEntries[i].Protocol != nil {
protocol = *info.EgressEntries[i].Protocol
}

result := strings.Join([]string{
Copy link
Collaborator

Choose a reason for hiding this comment

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

除了Port为空时,需给默认值"ALL"。
其余3个参数也需要额外判空?原逻辑不满足要求吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

除了Port为空时,需给默认值"ALL"。 其余3个参数也需要额外判空?原逻辑不满足要求吗?

后面要取值的,如果没返回值,直接*,会crash的。譬如之后如果支持ipv6规则,如果直接取cidr值,便会直接crash。

@hellertang hellertang merged commit d7b83df into master Sep 20, 2023
6 of 7 checks passed
@hellertang hellertang deleted the bugfix/fix_vpc_acl_all_port branch September 20, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run check run check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants