Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tvheadend: bind to LAN IP by default #17896

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions multimedia/tvheadend/files/tvheadend.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

config tvheadend server
option ipv6 '1'
# If bindaddr is not set, it will default to LAN IP address (uci get network.lan.ipaddr).
# To bind all interfaces, set it to "0.0.0.0".
# option bindaddr '0.0.0.0'
# option http_port '9981'
# option http_root '/tvheadend'
Expand Down
1 change: 1 addition & 0 deletions multimedia/tvheadend/files/tvheadend.init
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ load_uci_config() {
config_get_bool ipv6 server ipv6 0
[ "$ipv6" -eq 1 ] && procd_append_param command --ipv6
config_get bindaddr server bindaddr
[ -z "$bindaddr" ] && bindaddr=$(uci get network.lan.ipaddr)
[ -n "$bindaddr" ] && procd_append_param command --bindaddr "$bindaddr"
config_get http_port server http_port
[ -n "$http_port" ] && procd_append_param command --http_port "$http_port"
Expand Down