Patch for right determination of IPprefix if have more than one network interface.
Merge pull request #3 from swex/master

Patch for right determination of IPprefix if have more than one network interface.