summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-05-15 09:54:35 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-05-15 10:08:16 +0300
commitf8f0ed2521db01b7180ab7be328884035edcc5f3 (patch)
treee443f31bcc5df2ae7e998cc2c7b9d72187f78764
parenteffb2b1e9094b921cbbdd3020cb35c531c04ed39 (diff)
downloadvdradmin-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-xvdradmind.pl4
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;