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: fix Linux default network interface parsing #331

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

dekobon
Copy link
Contributor

@dekobon dekobon commented Jun 5, 2023

Fixes #317

This fix resolves a problem where the header line of /proc/net/route is skipped twice when running on Linux. This change also adds error checking to the Scanner performing the parsing operation.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

Fixes nginx#317

This fix resolves a problem where the header line of
/proc/net/route is skipped twice when running on Linux.
Additionally, this change also adds error checking to the Scanner
performing the parsing operation.
@netlify
Copy link

netlify bot commented Jun 5, 2023

Deploy Preview for agent-public-docs canceled.

Name Link
🔨 Latest commit ec23ad9
🔍 Latest deploy log https://app.netlify.com/sites/agent-public-docs/deploys/6480dcb945e6ea0008400c7c

@github-actions github-actions bot added bug Something isn't working chore Pull requests for routine tasks labels Jun 5, 2023
@dekobon
Copy link
Contributor Author

dekobon commented Jun 5, 2023

Apparently, I'm blind and I did not see this PR: #318

@Dean-Coakley
Copy link
Contributor

Dean-Coakley commented Jun 7, 2023

@dekobon Can you take a look at https://github.com/nginx/agent#installing-prerequisite-packages, then give make deps a run and commit the result?

This is likely an issue with all your current open PRs, can you please check them?

@dekobon
Copy link
Contributor Author

dekobon commented Jun 7, 2023

@dekobon Can you take a look at https://github.com/nginx/agent#installing-prerequisite-packages, then give make deps a run and commit the result?

This is likely an issue with all your current open PRs, can you please check them?

I've figured out how to do this and I've updated the PRs accordingly.

@Dean-Coakley Dean-Coakley merged commit d291ed7 into nginx:main Jun 8, 2023
27 checks passed
@dekobon dekobon deleted the issue/317 branch June 8, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chore Pull requests for routine tasks dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NGINX agent cannot find the default network interface on Linux hosts.
3 participants