mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Gofmt run.
This commit is contained in:
parent
fec890da2f
commit
3eca9a9d3e
3 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
)
|
||||
|
||||
type ControlRPC struct {
|
||||
|
||||
}
|
||||
|
||||
type KeyValuePair struct {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue