Accept a server without a port (default 4894) #48

Merged
littlefox merged 2 commits from issue-47-default-port into main 2026-10-17 17:26:47 +00:00
Owner

Closes #47

A bare host gets port 4894 (bare IPv6 gets brackets) on the plain and TLS paths and for kom-relay. Unit tests for the address forms; integration test connecting by bare host. Checked once, logged out, against kom.lysator.liu.se.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #47 A bare host gets port 4894 (bare IPv6 gets brackets) on the plain and TLS paths and for kom-relay. Unit tests for the address forms; integration test connecting by bare host. Checked once, logged out, against kom.lysator.liu.se. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Accept a server without a port: default to Protocol A's 4894
Some checks are pending
ci / check (push) Has started running
ci / e2e (push) Has started running
ci / desktop (push) Has started running
41c2828dfd
Typing "kom.lysator.liu.se" on the desktop login page failed with
"invalid socket address": the text went straight to
TcpStream::connect, which wants host:port. with_default_port adds
4894 to a bare host (and brackets to a bare IPv6 address) on the
plain and TLS paths, and for kom-relay's target.

Verified with a new integration test (bare host against the
devserver, by IP and by name) and once, logged out, against
kom.lysator.liu.se.

Refs #47

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Desktop: default to kom.lysator.liu.se (D-029)
All checks were successful
ci / check (push) Successful in 6m45s
ci / desktop (push) Successful in 11m58s
ci / e2e (push) Successful in 12m40s
441a123085
The packaged app started with 127.0.0.1:4894, a development address.
It now starts with Lysator's server; NEOKOM_SERVER still overrides it,
and every test and script sets it to a devserver.

Refs #47

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Sign in to join this conversation.
No description provided.