Skip to content

Commit 6d29e9f

Browse files
committed
Default MSSQL port 0 to allow automatic detection by default
Fix go-gitea#11633 Signed-off-by: Andrew Thornton <[email protected]>
1 parent a00974c commit 6d29e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func getPostgreSQLConnectionString(dbHost, dbUser, dbPasswd, dbName, dbParam, db
163163

164164
// ParseMSSQLHostPort splits the host into host and port
165165
func ParseMSSQLHostPort(info string) (string, string) {
166-
host, port := "127.0.0.1", "1433"
166+
host, port := "127.0.0.1", "0"
167167
if strings.Contains(info, ":") {
168168
host = strings.Split(info, ":")[0]
169169
port = strings.Split(info, ":")[1]

0 commit comments

Comments
 (0)