aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-01-12 04:09:24 +0800
committerGitHub <noreply@github.com>2023-01-11 20:09:24 +0000
commit2220e5d2455b28450e2f505152f9fbb8ac597e80 (patch)
tree8c41bd3dde9b970ce8db2b98d25d6f25cd1e2f66 /modules/setting/setting.go
parent477a1cc40ebd3ecb116c632b0717bba748e914d2 (diff)
downloadgitea-2220e5d2455b28450e2f505152f9fbb8ac597e80.tar.gz
gitea-2220e5d2455b28450e2f505152f9fbb8ac597e80.zip
Allow HOST has no port (#22280)
Fix #22274 This PR will allow `HOST` without port. Then a default port will be given in future steps.
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 07290fbfeb..fa65b94891 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1340,7 +1340,7 @@ func NewServices() {
newCacheService()
newSessionService()
newCORSService()
- newMailService()
+ parseMailerConfig(Cfg)
newRegisterMailService()
newNotifyMailService()
newProxyService()
@@ -1357,5 +1357,5 @@ func NewServices() {
// NewServicesForInstall initializes the services for install
func NewServicesForInstall() {
newService()
- newMailService()
+ parseMailerConfig(Cfg)
}