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 KeyValuePair struct {

View file

@ -209,7 +209,7 @@ func main() {
}
// win32 special-case
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]
if !exists {
log.Printf("Recovering lost server %v", name)

View file

@ -1307,7 +1307,7 @@ func (server *Server) handleUserStatsMessage(client *Client, msg *Message) {
if details {
if tlsconn := target.conn.(*tls.Conn); tlsconn != nil {
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)
}
// fixme(mkrautz): strong certificate checking