Desktop: a server without a port gives "invalid socket address" #47

Closed
opened 2026-10-17 17:10:13 +00:00 by littlefox · 2 comments
Owner

User report: typing kom.lysator.liu.se in the server field and logging in fails with "invalid socket address". The desktop app (and kom-relay) pass the text straight to TcpStream::connect, which needs host:port. A bare host should get Protocol A's port 4894, and a bare IPv6 address its brackets.

User report: typing `kom.lysator.liu.se` in the server field and logging in fails with "invalid socket address". The desktop app (and kom-relay) pass the text straight to TcpStream::connect, which needs host:port. A bare host should get Protocol A's port 4894, and a bare IPv6 address its brackets.
Author
Owner

Also in #48, per the user: the desktop app's default server is now kom.lysator.liu.se (D-029). NEOKOM_SERVER still overrides it; the desktop smoke test sets it to its devserver.

Also in #48, per the user: the desktop app's default server is now kom.lysator.liu.se (D-029). NEOKOM_SERVER still overrides it; the desktop smoke test sets it to its devserver.
Author
Owner

Merged in #48 (CI run #78 green). Verified: unit tests for the address forms; new integration test bare_host_uses_default_port against the devserver by IP and by name; once, logged out, against kom.lysator.liu.se (plain after NotTls, GetTime ok). Desktop default server is kom.lysator.liu.se (D-029).

Merged in #48 (CI run #78 green). Verified: unit tests for the address forms; new integration test bare_host_uses_default_port against the devserver by IP and by name; once, logged out, against kom.lysator.liu.se (plain after NotTls, GetTime ok). Desktop default server is kom.lysator.liu.se (D-029).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#47
No description provided.