[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:
@@ -313,7 +313,7 @@ async fn main() -> DynResult<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cfg.audio.enabled {
|
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 {
|
let stream_info = AudioStreamInfo {
|
||||||
sample_rate: cfg.audio.sample_rate,
|
sample_rate: cfg.audio.sample_rate,
|
||||||
channels: cfg.audio.channels,
|
channels: cfg.audio.channels,
|
||||||
|
|||||||
Reference in New Issue
Block a user