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

Historic IP addresses included in invites are rendered invalid by omitting the last digit of the port #136

Open
rednil opened this issue Jan 25, 2024 · 3 comments

Comments

@rednil
Copy link

rednil commented Jan 25, 2024

Using the new certificate format, IP addresses included in an invite are rendered invalid by omitting the last digit of the port.

Reproduce

Create an invite that includes the complete IP address history. Add this friend in another instance or use a Base64 decoder to look into the invite. Observe that the last digit of the port is missing, i.e. 3ipv6://[2103:c7:9720:d377:165d:efb4:d504:d25e]:420 when port "4200" was used.

Workaround

Use the "old certificate format". In this case, ports are properly included

@csoler
Copy link
Contributor

csoler commented Jan 25, 2024

I cannot reproduce it. Can it be that you are missing the = at the end?

@rednil
Copy link
Author

rednil commented Jan 26, 2024

@csoler Thank you for looking into this. By the way, thank you for your hard work on this excellent project. Please find below two invites generated with 0.6.7 on Ubuntu 22.04, first in the "new" format (showing the bug), then in the "old" format (correct port numbers). I also attached screenshots of the IP addresses of the exporting node, then after importing the invite (generated with the the new format) into another node (also 0.6.7 on Ubuntu 22.04). I hope that helps to reproduce the issue. Best regards

New Format

ABCL3ecZDHNZ0z7r1v1tvu18AxTCKsSx8Phq8u67TYXmB9qk1D/l3gEJQ2hyaXNjaGFuAhhpcHY0Oi8vMTkyLjE2OC4xNDQuMTo0
MjACNGlwdjY6Ly9bMmEwMjo2MWUwOjIwYTI6N2Y1MTo3NGU1OmM2ZjM6OTIxNjpiZmY1XTo0MjACFWlwdjQ6Ly8xNzIuMTcuMC4x
OjQyMAIVaXB2NDovLzE3Mi4xOC4wLjE6NDIwAjRpcHY2Oi8vWzJhMDI6NjFlMDoyMGEyOjdmNTE6Y2Q0NjpmYWNlOjczMzU6ODk4
NV06NDIwAhdpcHY0Oi8vMTkyLjE2OC4xLjQyOjQyMAIVaXB2NDovLzE3Mi4xOS4wLjE6NDIwA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MuMjM2OjQyMDAKGGlwdjQ6Ly8xOTIu
MTY4LjEuNDI6NDIwMAoZaXB2NDovLzE5Mi4xNjguMTQ0LjE6NDIwMAo1aXB2Njov
L1syYTAyOjYxZTA6MjBhMjo3ZjUxOjc0ZTU6YzZmMzo5MjE2OmJmZjVdOjQyMDAK
NWlwdjY6Ly9bMmEwMjo2MWUwOjIwYTI6N2Y1MTpjZDQ2OmZhY2U6NzMzNTo4OTg1
XTo0MjAwBwPFSYw=

Selection_034
Selection_035

@csoler
Copy link
Contributor

csoler commented Jan 26, 2024

Fixed in PR 138
Thx a lot for finding/reporting this.

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

No branches or pull requests

2 participants