go fix. Clearly, I need to run this more often ;)
This commit is contained in:
parent
82015bcab4
commit
9ba9dcbe86
|
|
@ -146,7 +146,7 @@ type authHandler struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var authHandlers = []authHandler{
|
var authHandlers = []authHandler{
|
||||||
authHandler{"PLAIN", authenticatePlain},
|
{"PLAIN", authenticatePlain},
|
||||||
}
|
}
|
||||||
|
|
||||||
func authenticatePlain(stream *Stream, user, password string) error {
|
func authenticatePlain(stream *Stream, user, password string) error {
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,3 @@ func UUID4() string {
|
||||||
uuid[8] = (uuid[8] &^ 0x40) | 0x80
|
uuid[8] = (uuid[8] &^ 0x40) | 0x80
|
||||||
return fmt.Sprintf("%x-%x-%x-%x-%x", uuid[:4], uuid[4:6], uuid[6:8], uuid[8:10], uuid[10:])
|
return fmt.Sprintf("%x-%x-%x-%x-%x", uuid[:4], uuid[4:6], uuid[6:8], uuid[8:10], uuid[10:])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue