Fixes hostname matching problem when interface has wildcards