From 46c6239a0135052460ea241e4dddff669f87af32 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Tue, 10 Oct 2017 22:49:28 +0200
Subject: [PATCH] [fix] #1148 field inversion between ws2pId and software

---
 app/modules/ws2p/lib/WS2PCluster.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/modules/ws2p/lib/WS2PCluster.ts b/app/modules/ws2p/lib/WS2PCluster.ts
index 7cd2284be..4c991070b 100644
--- a/app/modules/ws2p/lib/WS2PCluster.ts
+++ b/app/modules/ws2p/lib/WS2PCluster.ts
@@ -144,7 +144,7 @@ export class WS2PCluster {
           }
         }
         else if (message.match(WS2PConstants.HEAD_V1_REGEXP)) {
-          const [,,, pub, blockstamp, software, ws2pId, softVersion, prefix]:string[] = message.split(':')
+          const [,,, pub, blockstamp, ws2pId, software, softVersion, prefix]:string[] = message.split(':')
           const sigOK = verify(message, sig, pub)
           const fullId = [pub, ws2pId].join('-')
           if (sigOK) {
-- 
GitLab