Skip to content

Commit 8863163

Browse files
authored
Make default server local (go-mysql-org#1)
1 parent 8ef3467 commit 8863163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/conn.go

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ func NewConn(conn net.Conn, user string, password string, h Handler) (*Conn, err
4444
p.AddUser(user, password)
4545
salt, _ := RandomBuf(20)
4646

47+
defaultServer := NewDefaultServer()
48+
4749
var packetConn *packet.Conn
4850
if defaultServer.tlsConfig != nil {
4951
packetConn = packet.NewTLSConn(conn)

server/server_conf.go

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
. "github.com/siddontang/go-mysql/mysql"
99
)
1010

11-
var defaultServer = NewDefaultServer()
12-
1311
// Defines a basic MySQL server with configs.
1412
//
1513
// We do not aim at implementing the whole MySQL connection suite to have the best compatibilities for the clients.

0 commit comments

Comments
 (0)