diff options
author | zeripath <art27@cantab.net> | 2020-05-29 04:59:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 23:59:59 -0400 |
commit | e8955173a9be1acaa9a3755c37b6059422acda20 (patch) | |
tree | 6871aa1e5a2de288f11e2ecc5129ef393645d66b /modules/setting | |
parent | 8730b091e3d235ffabd15912cdd95803d2be358b (diff) | |
download | gitea-e8955173a9be1acaa9a3755c37b6059422acda20.tar.gz gitea-e8955173a9be1acaa9a3755c37b6059422acda20.zip |
Default MSSQL port 0 to allow automatic detection by default (#11642)
Fix #11633
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/database.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/database.go b/modules/setting/database.go index 85043e8c11..6bfb02ac41 100644 --- a/modules/setting/database.go +++ b/modules/setting/database.go @@ -163,7 +163,7 @@ func getPostgreSQLConnectionString(dbHost, dbUser, dbPasswd, dbName, dbParam, db // ParseMSSQLHostPort splits the host into host and port func ParseMSSQLHostPort(info string) (string, string) { - host, port := "127.0.0.1", "1433" + host, port := "127.0.0.1", "0" if strings.Contains(info, ":") { host = strings.Split(info, ":")[0] port = strings.Split(info, ":")[1] |