Added matching hostname when interface has wildcards. Fixes #2396.
Merge pull request #2397 from mdogan/2.x/fix-2396

Fixes hostname matching problem when interface has wildcards