fix issue: check if host is end with rule, not the opposite