harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://rustxiu.com
MIT License
1.77k stars 187 forks source link

`Bug`: Always `listening on tcp://0.0.0.0` #13

Closed dmgolembiowski closed 2 years ago

dmgolembiowski commented 2 years ago

Description

0.0.0.0 is hard-coded at compile time via src/main.rs rather than interpolated at runtime.

Expected Behavior

The config file's address value reflects what is printed by the logger.

Actual Behavior

$ xiu listening.toml
[2021-10-15T04:19:32Z INFO  rtmp::rtmp] Rtmp server listening on tcp://0.0.0.0:1935
harlanc commented 2 years ago

Thanks for your report, but I don't know what's your meaning? The address field in config file is used for cluster but not for the local RTMP server..