diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-05-15 09:54:35 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-05-15 10:08:16 +0300 |
commit | f8f0ed2521db01b7180ab7be328884035edcc5f3 (patch) | |
tree | e443f31bcc5df2ae7e998cc2c7b9d72187f78764 | |
parent | effb2b1e9094b921cbbdd3020cb35c531c04ed39 (diff) | |
download | vdradmin-am-f8f0ed2521db01b7180ab7be328884035edcc5f3.tar.gz vdradmin-am-f8f0ed2521db01b7180ab7be328884035edcc5f3.tar.bz2 |
Try resolving external streamdev URL also when VDR_HOST is 127.0.0.1.
-rwxr-xr-x | vdradmind.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vdradmind.pl b/vdradmind.pl index 7d8806d..9f362b5 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -5161,7 +5161,7 @@ sub live_stream { if ($CONFIG{ST_STREAMDEV_HOST}) { $ip = $CONFIG{ST_STREAMDEV_HOST}; } else { - if ($CONFIG{VDR_HOST} eq "localhost") { + if ($CONFIG{VDR_HOST} =~ /^localhost(\.localdomain)?|127\.0\.0\.1$/i) { $ifconfig = `/sbin/ifconfig eth0`; if ($ifconfig =~ /inet.+:(\d+\.\d+\.\d+\.\d+)\s+Bcast/) { $ip = $1; @@ -6842,7 +6842,7 @@ sub export_channels_m3u { if ($CONFIG{ST_STREAMDEV_HOST}) { $ip = $CONFIG{ST_STREAMDEV_HOST}; } else { - if ($CONFIG{VDR_HOST} eq "localhost") { + if ($CONFIG{VDR_HOST} =~ /^localhost(\.localdomain)?|127\.0\.0\.1$/i) { $ifconfig = `/sbin/ifconfig eth0`; if ($ifconfig =~ /inet.+:(\d+\.\d+\.\d+\.\d+)\s+Bcast/) { $ip = $1; |