Added matching hostname when interface has wildcards. Fixes #2396.
Merge pull request #2398 from mdogan/3.2/fix-2396

Fixes hostname matching problem when interface has wildcards