@@ -126,6 +126,9 @@ func HandshakeHandler(ctx *gin.Context) {
|
|||||||
CheckErr(err)
|
CheckErr(err)
|
||||||
randKey := params.Get("randkey")
|
randKey := params.Get("randkey")
|
||||||
deviceId := params.Get("deviceid")
|
deviceId := params.Get("deviceid")
|
||||||
|
if deviceId == "" {
|
||||||
|
deviceId = ctx.Request.Header.Get("X-DEVICEID")
|
||||||
|
}
|
||||||
// fmt.Println(randKey)
|
// fmt.Println(randKey)
|
||||||
// fmt.Println(deviceId)
|
// fmt.Println(deviceId)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user