Add rule about 'localhost'

This commit is contained in:
Evan Phoenix
2015-05-18 16:08:22 -07:00
parent 5e6d33a57f
commit 40cc034acb
4 changed files with 18 additions and 1 deletions

View File

@@ -77,6 +77,10 @@ var mappings = []*mapping{
}
func (m *Mysql) gatherServer(serv string, acc plugins.Accumulator) error {
if serv == "localhost" {
serv = ""
}
db, err := sql.Open("mysql", serv)
if err != nil {
return err