mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Backport #11850 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -105,7 +105,7 @@ func DBConnStr() (string, error) {
 | 
			
		||||
	switch Database.Type {
 | 
			
		||||
	case "mysql":
 | 
			
		||||
		connType := "tcp"
 | 
			
		||||
		if Database.Host[0] == '/' { // looks like a unix socket
 | 
			
		||||
		if len(Database.Host) > 0 && Database.Host[0] == '/' { // looks like a unix socket
 | 
			
		||||
			connType = "unix"
 | 
			
		||||
		}
 | 
			
		||||
		tls := Database.SSLMode
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user