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(auth): validation of ipv6/ipv4 #812

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

fallenbagel
Copy link
Owner

@fallenbagel fallenbagel commented Jun 12, 2024

Description

From #470, validation for ipv6 was sort of broken where for example ::1 was being sent as 1, therefore, logins were broken. This PR fixes it by using nodejs net.isIPv4() & net.isIPv6 for ipv4 and ipv6 validation.

Screenshot (if UI-related)

To-Dos

  • Successful build yarn build
  • Translation keys yarn i18n:extract
  • Database migration (if required)

Issues Fixed or Closed

validation for ipv6 was sort of broken where for example `::1` was being sent as `1`, therefore,
logins were broken. This PR fixes it by using nodejs `net.isIPv4()` & `net.isIPv6` for ipv4 and ipv6
validation.

possibly related to and fixes #795
@fallenbagel fallenbagel merged commit 9aeb360 into develop Jun 12, 2024
6 checks passed
@fallenbagel
Copy link
Owner Author

🎉 This PR is included in version 1.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

bonswouar pushed a commit to bonswouar/jellyseerr that referenced this pull request Jun 14, 2024
validation for ipv6 was sort of broken where for example `::1` was being sent as `1`, therefore,
logins were broken. This PR fixes it by using nodejs `net.isIPv4()` & `net.isIPv6` for ipv4 and ipv6
validation.

possibly related to and fixes fallenbagel#795
@gauthier-th gauthier-th deleted the fix-ip-forwarding branch August 24, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login issue
2 participants