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

Fixes hostname matching problem when interface has wildcards