Author: richard
Date: Sat Jan 17 06:47:30 2009
New Revision: 3869

URL: http://svn.slimdevices.com?rev=3869&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix SSH help text when multiple interfaces are available.


Modified:
    
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupSSH/SetupSSHApplet.lua

Modified: 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupSSH/SetupSSHApplet.lua
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupSSH/SetupSSHApplet.lua?rev=3869&root=Jive&r1=3868&r2=3869&view=diff
==============================================================================
--- 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupSSH/SetupSSHApplet.lua
 (original)
+++ 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupSSH/SetupSSHApplet.lua
 Sat Jan 17 06:47:30 2009
@@ -93,10 +93,12 @@
 function _getIPAddress()
        local ipaddr
 
-       local cmd = io.popen("/sbin/ifconfig eth0")
+       local cmd = io.popen("/sbin/ifconfig")
        for line in cmd:lines() do
                ipaddr = string.match(line, "inet addr:([%d%.]+)")
-               if ipaddr ~= nil then break end
+               if ipaddr ~= nil and not string.match(ipaddr, "127.") then
+                       break
+               end
        end
        cmd:close()
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to