1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-16 06:28:27 +00:00

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.
This commit is contained in:
Lunny Xiao
2023-01-12 09:57:03 +08:00
committed by GitHub
parent 41a06d2e82
commit 426c0ad14c
3 changed files with 57 additions and 5 deletions

View File

@@ -1334,7 +1334,7 @@ func NewServices() {
newCacheService()
newSessionService()
newCORSService()
newMailService()
parseMailerConfig(Cfg)
newRegisterMailService()
newNotifyMailService()
newProxyService()
@@ -1351,5 +1351,5 @@ func NewServices() {
// NewServicesForInstall initializes the services for install
func NewServicesForInstall() {
newService()
newMailService()
parseMailerConfig(Cfg)
}