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

Improve gateway information parsing #331

Closed

Conversation

overhacked
Copy link

  1. Fix FreeBSD-specific parsing that missed any digits
    of the last IP octet more than a single digit.
  2. Support IPv6 addresses as the default gateway
  3. Parse multiple default gateways in a dual-stack
    IPv4/IPv6 system
  4. Switch DefaultOs.php to use preg_match_all()
    instead of a shell pipeline for parsing.

@tflidd
Copy link
Contributor

tflidd commented Nov 1, 2021

I already did something similar (but not reviewed yet): #271

1. Fix FreeBSD-specific parsing that missed any digits
   of the last IP octet more than a single digit.
2. Support IPv6 addresses as the default gateway
3. Parse multiple default gateways in a dual-stack
   IPv4/IPv6 system
4. Switch DefaultOs.php to use `preg_match_all()`
   instead of a shell pipeline for parsing.

Signed-off-by: Ross Williams <ross@ross-williams.net>
@blizzz blizzz added this to the Nextcloud 25 milestone Apr 21, 2022
@tflidd
Copy link
Contributor

tflidd commented Apr 21, 2022

The other PR was merged. Can you rebase and check if you have other things to fix in your PR?

@kesselb
Copy link
Collaborator

kesselb commented Jun 27, 2023

Thanks for your pull request 👍

I'm closing the pull request due to the lack of activity.
Please submit a new patch if the change is still needed.

@kesselb kesselb closed this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants