]> source.dussan.org Git - gitea.git/commit
Support `hostname:port` to pass host matcher's check (#19543) (#19544)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 28 Apr 2022 17:41:58 +0000 (01:41 +0800)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 17:41:58 +0000 (01:41 +0800)
commitb86606fa38995b4b625e1c413c220f47d6a10626
treef0e83102963ffa4dac587e2b133403257caf9b96
parent74602bb487fb869d7e17d7ad745910db82cb6fd1
Support `hostname:port` to pass host matcher's check (#19543) (#19544)

Backport #19543
hostmatcher: split the hostname from the hostname:port string, use the correct hostname to do the match.
modules/hostmatcher/hostmatcher.go
modules/hostmatcher/hostmatcher_test.go