Skip to content

login/data.go: Fix validation for NetherNet ServerAddress field in ClientData. - #500

Closed
Dasciam wants to merge 3 commits into
Sandertv:masterfrom
Dasciam:fix/nethernet-server-address-parsing
Closed

login/data.go: Fix validation for NetherNet ServerAddress field in ClientData.#500
Dasciam wants to merge 3 commits into
Sandertv:masterfrom
Dasciam:fix/nethernet-server-address-parsing

Conversation

@Dasciam

@Dasciam Dasciam commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@TwistedAsylumMC

Copy link
Copy Markdown
Collaborator

Can you show what the client is actually sending to make this necessary?

@HashimTheArab

Copy link
Copy Markdown
Contributor

@lactyy2

lactyy2 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

I think that is exactly the same as the current code. This PR adds support for ServerAddress with brackets ([http://<host>:<port>]:<port>), which I couldn't reproduce with any server address I tried.

@Dasciam

Dasciam commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

I think that is exactly the same as the current code. This PR adds support for ServerAddress with brackets ([http://<host>:<port>]:<port>), which I couldn't reproduce with any server address I tried.

I've tried to just log in to a local server.

@TwistedAsylumMC

Copy link
Copy Markdown
Collaborator

Can you show some data?

@Dasciam

Dasciam commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Can you show some data?

Caused by:

cData.ServerAddress = "[" + cData.ServerAddress[:ind] + "]" + cData.ServerAddress[ind:]

@Dasciam

Dasciam commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

So, before ClientData.Validate call, the ServerAddress field is getting modified to the variant with brackets included

Got it

@Dasciam

Dasciam commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Stale

@Dasciam Dasciam closed this Aug 15, 2026
@Dasciam
Dasciam deleted the fix/nethernet-server-address-parsing branch August 15, 2026 15:55
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.

4 participants