change match method of allowPublishHosts

Signed-off-by: nanashi <nanashi.hatch@gmail.com>