From c2233a63a57c88b48066b19db18466cfafbbcb2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 13:40:56 +0800 Subject: [PATCH] Update main.js --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a6c64ca..b69d2cb 100644 --- a/main.js +++ b/main.js @@ -250,7 +250,7 @@ function prepareConfig(config) { let options = { config: { - type: params.type || 'tcp', + type: 'tcp', round: parseInt(params.round, 10) || 0, timeout: parseInt(params.timeout, 10) || 5000, defaultDeviceId: (params.deviceId === undefined || params.deviceId === null) ? 1 : (parseInt(params.deviceId, 10) || 0),