]> source.dussan.org Git - gitea.git/commit
Allow HOST has no port (#22280) (#22409)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 12 Jan 2023 01:57:03 +0000 (09:57 +0800)
committerGitHub <noreply@github.com>
Thu, 12 Jan 2023 01:57:03 +0000 (09:57 +0800)
commit426c0ad14c5edc6b7afdf7386d71889732ca11ac
tree1c82b2d7de20641ec14e8c7daca00f609393aee7
parent41a06d2e824e409a708449341badc9e8684b9c73
Allow HOST has no port (#22280) (#22409)

Fix #22274
Backport #22280

This PR will allow `HOST` without port. Then a default port will be
given in future steps.
modules/setting/mailer.go
modules/setting/mailer_test.go [new file with mode: 0644]
modules/setting/setting.go