Every edit box, combo box and radio button on the master settings
dialog now explains itself on hover. The tips use explicit line breaks
so long explanations do not run on one wide line.
The dialog uses MFC's built-in tooltip support (EnableToolTips +
OnToolHitTest + TTN_NEEDTEXT) instead of a hand-rolled CToolTipCtrl
relay. OnToolHitTest hits controls by rectangle, which covers combo
boxes (mouse messages target their internal edit child) and controls
disabled at runtime (FRP port/token while FRP is off); the framework
then translates the relay and shows the tip.
Two details make the tips behave: the thread tooltip gets a max tip
width (otherwise it draws one line and ignores the breaks), and the
read-only max-connections field is lifted above its group box in
z-order, because the relay's child-window lookup otherwise resolves
the group box instead of the field.
The 14 texts are translated in the en_US, de_DE and zh_TW packs. The
listen-port tip warns that deployed clients keep the old port, and the
report-interval/detect tips say the value is pushed after OK (Apply
only saves). The UDP-params tip covers the 0/1 aliases and the restart
requirement.
Co-Authored-By: deepseek-flash
The switch only offered direct TCP, WS and WSS; UDP and KCP are now
experimental menu entries, and the radio item follows the real transport.
The server maps ghost/UDPOption to real listeners (a "UDP;KCP" setup
used to collapse to one UDP port). A switch sends the master address and
that transport's port, refused behind an upper-level FRP. The client
persists the override, recreates its connection object when the transport
changes, and disconnects an unacknowledged switch after 60 s so the 300 s
revert can run. TCP/WS/WSS behaviour is unchanged.
Reconnecting a KCP client reused the same object: a fresh std::thread
over the old one aborted the process and leaked the ikcp session;
ConnectServer now joins the update thread and releases the session first,
and the UDP one also clears the stale login-ack flag. KCP contexts no
longer touch the shared listener socket: CancelIO is a no-op, Disconnect
looks up by IP:port and defers deletion behind the receive thread's
reference, COMMAND_BYE leaves the socket alone, and Disconnect stays
silent like UDP's. Oversized messages are delivered in chunks.
A datagram host has no disconnect event, so a new login for the same id
was parked as standby for up to 120 s while the client gave up after
60 s; a UDP/KCP or different-transport login now replaces it immediately.
The new labels, prompts and settings hint are translated in the
en_US/de_DE/zh_TW packs; UDPOption also accepts 0/1 in port order.
Verified: Debug build; switch directions plus KCP delete/reconnect/file-transfer tested.
Co-Authored-By: deepseek-flash