fix incorrect secondary ip handling, fixes #7724
Merge pull request #7725 from slapers/network-secondaries-issue

fix incorrect secondary ip handling, fixes #7724