Browse Source

Revert "Add support for Unix domain sockets"

tags/v2.1.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
66561771e6
No account linked to committer's email address
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      irc/mysql/history.go

+ 0
- 2
irc/mysql/history.go View File

@@ -90,8 +90,6 @@ func (m *MySQL) Open() (err error) {
90 90
 	var address string
91 91
 	if m.config.Port != 0 {
92 92
 		address = fmt.Sprintf("tcp(%s:%d)", m.config.Host, m.config.Port)
93
-	} else {
94
-		address = fmt.Sprintf("unix(%s)", m.config.Host)
95 93
 	}
96 94
 
97 95
 	m.db, err = sql.Open("mysql", fmt.Sprintf("%s:%s@%s/%s", m.config.User, m.config.Password, address, m.config.HistoryDatabase))

Loading…
Cancel
Save