Ticket #13619: patch-mediaserv.diff

File patch-mediaserv.diff, 596 bytes (added by ecronin (Eric Cronin), 17 years ago)
  • mediaserv

    old new  
    8282#
    8383unless ($ip) {
    8484    local $ENV{PATH} = '/usr/local/sbin:/usr/sbin:/sbin:'.$ENV{PATH};
    85     $ip = `ifconfig \$(netstat -arn | awk '\$1 ~ /0\.0\.0\.0/ {print \$8; exit}')`;
    86     $ip =~ s/^.*?:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) .*$/$1/s if $ip;
     85    $ip = `ifconfig \$(netstat -arn | awk '\$1 ~ /default/ {print \$6; exit}')`;
     86    $ip =~ s/^.*inet (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) .*$/$1/s if $ip;
    8787}
    8888
    8989# -- See if we can use Gnome to get thumbnails for videos...