glusterd: search through the list of hostnames in the peerinfo

Change-Id: I3b0346c16ba7b02f80392dcad24b1221c68daa67
Signed-off-by: Varun Shastry <vshastry@redhat.com>
Below in line number 145, we were matching it with both ip and hostname. If we don't pass 2 different strings we need to iterate the list twice.