1
0
Fork 0
forked from External/grumble

Gofmt run.

This commit is contained in:
Mikkel Krautz 2011-05-20 12:30:31 +02:00
parent fec890da2f
commit 3eca9a9d3e
3 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import (
) )
type ControlRPC struct { type ControlRPC struct {
} }
type KeyValuePair struct { type KeyValuePair struct {

View file

@ -209,7 +209,7 @@ func main() {
} }
// win32 special-case // win32 special-case
if matched, _ := regexp.MatchString("^[0-9]+.old$", name); matched { if matched, _ := regexp.MatchString("^[0-9]+.old$", name); matched {
sid, _ := strconv.Atoi64(name[0:len(name)-4]) sid, _ := strconv.Atoi64(name[0 : len(name)-4])
_, exists := servers[sid] _, exists := servers[sid]
if !exists { if !exists {
log.Printf("Recovering lost server %v", name) log.Printf("Recovering lost server %v", name)

View file

@ -1307,7 +1307,7 @@ func (server *Server) handleUserStatsMessage(client *Client, msg *Message) {
if details { if details {
if tlsconn := target.conn.(*tls.Conn); tlsconn != nil { if tlsconn := target.conn.(*tls.Conn); tlsconn != nil {
state := tlsconn.ConnectionState() state := tlsconn.ConnectionState()
for i := len(state.PeerCertificates)-1; i >= 0; i-- { for i := len(state.PeerCertificates) - 1; i >= 0; i-- {
stats.Certificates = append(stats.Certificates, state.PeerCertificates[i].Raw) stats.Certificates = append(stats.Certificates, state.PeerCertificates[i].Raw)
} }
// fixme(mkrautz): strong certificate checking // fixme(mkrautz): strong certificate checking