This commit is contained in:
iamqizhao
2015-08-26 13:11:34 -07:00
parent c0e23d7ef3
commit ef3d58fc04
2 changed files with 21 additions and 2 deletions

View File

@ -187,7 +187,7 @@ func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error)
rawConn.Close()
return nil, nil, err
}
return conn, &TLSInfo{conn.ConnectionState()}, nil
return conn, TLSInfo{conn.ConnectionState()}, nil
}
// NewTLS uses c to construct a TransportAuthenticator based on TLS.