Skip to content

Commit

Permalink
filter out scope link IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi2 committed Feb 19, 2015
1 parent 2e9fff9 commit b9ddb60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/IscsiLioData.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ global list<string> GetIpAddr()
}
return(s);
});
ls = filter( string s, ls, ``(substring( s, 0, 4 )!="127." && substring( s, 0, 3 ) != "::1") );
ls = filter( string s, ls, ``(substring( s, 0, 4 ) != "127."&& // lo IPv4
substring( s, 0, 3 ) != "::1" && // lo IPv6
substring( s, 0, 5 ) != "fe80:") ); // scope link IPv6
if( size(ls)==0 )
ls = add( ls, "" );
y2milestone( "GetIpAddr ls:%1", ls );
Expand Down

0 comments on commit b9ddb60

Please sign in to comment.