Skip to content

SSH address broken if IPv6 is used #7509

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

Closed
2 of 7 tasks
fakuivan opened this issue Jul 17, 2019 · 1 comment · Fixed by #12321
Closed
2 of 7 tasks

SSH address broken if IPv6 is used #7509

fakuivan opened this issue Jul 17, 2019 · 1 comment · Fixed by #12321
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug

Comments

@fakuivan
Copy link

  • Gitea version (or commit ref): 1.10.0+dev-59-gf1ca8ed04
  • Git version (server): 2.22.0
  • Operating system: Docker (Linux 7ca71e51f279 4.15.0-54-generic Integrated dependency manager #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 Linux)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: Not relevant

Description

IPv6 addresses for ssh passed as SSH_DOMAIN gets cut (on the UI side at least) to the first : presumably because the algorithm used to split the port number and address splits from left to right with no limit as to how many times it should do it.

I'm not familiar with golang or the framework used in this case, but I think the error has something to do with this
image

Screenshots

image

@lunny lunny added the type/bug label Jul 18, 2019
@stale
Copy link

stale bot commented Sep 16, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Sep 16, 2019
@techknowlogick techknowlogick added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Sep 16, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants