Oh... you might be on to something... Would the following change fix the
behaviour for you? Could you please test this with and without the
httpaddr startup parameter?
Code:
--------------------
diff --git a/Slim/Utils/Network.pm b/Slim/Utils/Network.pm
index 53facd175..f0bd1969f 100644
--- a/Slim/Utils/Network.pm
+++ b/Slim/Utils/Network.pm
@@ -456,9 +456,9 @@ sub ip_is_host {
my $ip = shift || return;
return 1 if $ip eq '127.0.0.1';
- return 1 if $ip eq hostAddr();
+ return 1 if $ip eq serverAddr();
- return intip($ip) == intip(hostAddr()) ? 1 : 0;
+ return intip($ip) == intip(serverAddr()) ? 1 : 0;
}
=head1 ip_is_gateway($ip)
@@ -497,7 +497,7 @@ sub ip_on_different_network {
# if our host IP is 127.0.0.1 (lookup failed), then all networks would
be different - ignore
return if hostAddr() eq '127.0.0.1';
- return ip_is_private(hostAddr()) ? !ip_is_private($ip) :
ip_is_private($ip);
+ return ip_is_private(serverAddr()) ? !ip_is_private($ip) :
ip_is_private($ip);
}
=head1 SEE ALSO
--------------------
hostAddr() would indeed ignore that parameter.
Thanks for the heads up!
Michael
http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=108599
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter