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: Added -n option in iptables list cmd to prevent reverse dns lookup #2686

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

tamilmani1989
Copy link
Member

cherry pick from commit id b8f6db6

Reason for Change:

Issue Fixed:

Cherry pick this PR #2682

Requirements:

Notes:

@tamilmani1989 tamilmani1989 added cni Related to CNI. fix Fixes something. labels Apr 15, 2024
@tamilmani1989 tamilmani1989 requested a review from rbtr April 15, 2024 16:32
Copy link
Member

@timraymond timraymond left a comment

Choose a reason for hiding this comment

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

One quick suggestion.

@@ -109,7 +109,7 @@ func RunCmd(version, params string) error {

// check if iptable chain alreay exists
func ChainExists(version, tableName, chainName string) bool {
params := fmt.Sprintf("-t %s -L %s", tableName, chainName)
params := fmt.Sprintf("-t %s -nL %s", tableName, chainName)
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth documenting these flags here? I know that you can look them up from the manpage, but it might be helpful to put it in front of readers' faces.

Copy link
Member Author

@tamilmani1989 tamilmani1989 Apr 15, 2024

Choose a reason for hiding this comment

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

Thanks for suggestion. This is cherry-pick PR for backport release. will add it next time in the PR created against master

@rbtr
Copy link
Contributor

rbtr commented Apr 15, 2024

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tamilmani1989
Copy link
Member Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tamilmani1989 tamilmani1989 merged commit 1fa7765 into release/v1.4 Apr 19, 2024
26 of 29 checks passed
@tamilmani1989 tamilmani1989 deleted the tamilmani/cherrypick-2682-iptablesFix branch April 19, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cni Related to CNI. fix Fixes something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants