forked from gitea/gitea
Backport #19543 hostmatcher: split the hostname from the hostname:port string, use the correct hostname to do the match.
Backport #19543 hostmatcher: split the hostname from the hostname:port string, use the correct hostname to do the match.