Changeset fe3f981eaa19ec627511ab4ebd792f10f2f08012

Show
Ignore:
Timestamp:
05/12/10 18:55:38 (4 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1273690538 +0000
git-parent:

[3c05c50a2c95dd738d068b5f680004b3bd474aa7]

git-author:
Mark Harrison <mark@omniti.com> 1273690538 +0000
Message:

Merge alternate IP fix (changeset 375) to resmon2 (refs #6)

git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@376 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Status.pm

    rab637c1 rfe3f981  
    367367    $self->{authuser} = shift; 
    368368    $self->{authpass} = shift; 
    369     $ip = INADDR_ANY if(!defined($ip) || $ip eq '' || $ip eq '*'); 
     369    if(!defined($ip) || $ip eq '' || $ip eq '*') { 
     370        $ip = INADDR_ANY; 
     371    } else { 
     372        $ip = inet_aton($ip); 
     373    } 
    370374    $port ||= 81; 
    371375