[fix](trx-server): apply --listen flag to audio TCP listener

The audio listener was ignoring the CLI --listen override and always
binding to the config default (127.0.0.1), making it unreachable
from remote clients.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-08 13:12:04 +01:00
parent ee7f0360fb
commit 245e025134
+1 -1
View File
@@ -313,7 +313,7 @@ async fn main() -> DynResult<()> {
}
if cfg.audio.enabled {
let audio_listen = SocketAddr::from((cfg.audio.listen, cfg.audio.port));
let audio_listen = SocketAddr::from((cli.listen.unwrap_or(cfg.audio.listen), cfg.audio.port));
let stream_info = AudioStreamInfo {
sample_rate: cfg.audio.sample_rate,
channels: cfg.audio.channels,