diff --git a/handler/private.go b/handler/private.go index c6fa831..73c23cb 100644 --- a/handler/private.go +++ b/handler/private.go @@ -125,10 +125,7 @@ func Handshake(ctx *gin.Context) { params, err := url.ParseQuery(string(decryptedBody)) CheckErr(err) randKey := params.Get("randkey") - deviceId := params.Get("deviceid") - if deviceId == "" { - deviceId = ctx.Request.Header.Get("X-DEVICEID") - } + deviceId := ctx.Request.Header.Get("X-DEVICEID") // fmt.Println(randKey) // fmt.Println(deviceId)