ui: servers observe on selection; no gateway or query fields
Selecting a server (or saving one) observes it invisibly through its gateway, else a query login an older version stored; without a gateway it is looked up from the address (SRV, then /.well-known/tsgw) and observing starts once found. The Observe button and the menu entry are gone. The add/edit server dialog no longer asks for a gateway URL or ServerQuery login: Advanced keeps the name and nickname. A new address drops the gateway and query login of the old server, so they are looked up again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
10 files changed
+103
-179
No files matched your search
@@ -94,12 +94,13 @@ Every login, post and settings change is written to the audit table.
|
||||
|
||||
When a user adds a server by its address (`ts.example.org`), Voelin looks
|
||||
for its gateway the way TeamSpeak looks for the voice server (SRV
|
||||
`_ts3._udp`, then TSDNS), and uses what it finds as if the user had typed
|
||||
the URL (the field stays editable under *Advanced*). It asks at the
|
||||
server's host name and then at each parent domain down to the registered
|
||||
domain, the most specific name first; for `ts.example.org` that is
|
||||
`ts.example.org`, then `example.org`. It looks again when the server is
|
||||
saved with an empty gateway URL and when it connects with voice.
|
||||
`_ts3._udp`, then TSDNS), and observes the server through it as soon as the
|
||||
user selects the server (users do not type gateway URLs or query logins).
|
||||
It asks at the server's host name and then at each parent domain down to the
|
||||
registered domain, the most specific name first; for `ts.example.org` that
|
||||
is `ts.example.org`, then `example.org`. It looks again when the server is
|
||||
selected or saved without a gateway (a new address drops the old one) and
|
||||
when it connects with voice.
|
||||
|
||||
**DNS records** (preferred). An SRV record names the gateway's host and
|
||||
port, the service name says whether it speaks TLS:
|
||||
@@ -144,7 +145,7 @@ Discovery is as trustworthy as DNS and the network, like TSDNS: prefer a
|
||||
use one from a public CA (Caddy's automatic Let's Encrypt certificates
|
||||
work); the Android app cannot reach `wss://` gateways yet (it has no
|
||||
system store to read). A user logs in with
|
||||
their own identity, and only when they choose to observe the server.
|
||||
their own identity, when they select the server in Voelin.
|
||||
|
||||
## Install
|
||||
|
||||
|
||||
+17
-10
@@ -276,16 +276,23 @@ with the sample studio's sources, live at once with sample viewers.
|
||||
The add-server dialog (`BookmarkDialog` in `screens/dialogs.slint`, logic in
|
||||
`servers.rs`) asks for the address (host, host:port, IP or server
|
||||
nickname; the resolver finds the port through SRV records and TSDNS) and
|
||||
an optional server password. *Advanced* (open when editing) has the rest,
|
||||
and empty fields there are filled in: the name is the address until the
|
||||
first connection, then the server's own name (`adopt_server_name`); the
|
||||
nickname is the default identity's (one imported from TeamSpeak keeps its
|
||||
nickname there), else the system user's, else "Voelin user"; the identity is the default one,
|
||||
there is no default channel; the gateway is looked up in DNS when the
|
||||
server is saved without one and when it connects
|
||||
([gateway-admin.md](gateway-admin.md#letting-voelin-find-the-gateway)),
|
||||
and one found is stored as if typed. `bookmark` and `bookmark:edit` open
|
||||
it (below).
|
||||
an optional server password. *Advanced* (open when editing) has the name
|
||||
and the nickname, and empty fields there are filled in: the name is the
|
||||
address until the first connection, then the server's own name
|
||||
(`adopt_server_name`); the nickname is the default identity's (one imported
|
||||
from TeamSpeak keeps its nickname there), else the system user's, else
|
||||
"Voelin user"; the identity is the default one, there is no default channel.
|
||||
There are no gateway or ServerQuery fields: the gateway is looked up from
|
||||
the address (DNS SRV records, else the gateway's `/.well-known/tsgw`) when
|
||||
the server is saved, selected or connected
|
||||
([gateway-admin.md](gateway-admin.md#letting-voelin-find-the-gateway)), one
|
||||
found is stored, and a new address looks again. `bookmark` and
|
||||
`bookmark:edit` open it (below).
|
||||
|
||||
Selecting a server observes it invisibly through its gateway (or a query
|
||||
login an older version stored), so its channels, members and chats show
|
||||
without joining; there is no Observe button. Without a gateway, observing
|
||||
starts once one is found.
|
||||
|
||||
Settings → Profiles (`ProfilesSection` in `screens/settings-pages.slint`;
|
||||
`settings_pages.rs`, and `identities.rs` for the default and the import
|
||||
|
||||
Reference in new issue
Block a user