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

Tighten static ip regex #1751

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Jan 27, 2025

Closes #1750 by only allowing .10-.19

@mcm001 mcm001 marked this pull request as ready for review January 27, 2025 05:46
@mcm001 mcm001 requested a review from a team as a code owner January 27, 2025 05:46
@crschardt
Copy link
Contributor

Does this new pattern block people from setting arbitrary IP addresses when they are connected to a home router rather than the robot? I’m on my phone now, so I can’t easily check. I can investigate tonight if you don’t know the answer.

@samfreund
Copy link
Contributor

Does this new pattern block people from setting arbitrary IP addresses when they are connected to a home router rather than the robot? I’m on my phone now, so I can’t easily check. I can investigate tonight if you don’t know the answer.

We might want to notify the user that the address is outside legal competition range, but still allow them to set it.

@mcm001
Copy link
Contributor Author

mcm001 commented Jan 27, 2025

Yes, it totally blocks anything outside of that range. Which if your router is handing out dhcp leases there, you're kinda sol.

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.

Static IP can be outside of comp-legal range
4 participants