From 2912dd5071b56fcfd32e74d438db03bc4049ce22 Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Wed, 16 Oct 2024 13:53:37 -0400 Subject: [PATCH] user agent cleanup --- src/models/stratum-messages/SubscriptionMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/stratum-messages/SubscriptionMessage.ts b/src/models/stratum-messages/SubscriptionMessage.ts index ada3d12..318988e 100644 --- a/src/models/stratum-messages/SubscriptionMessage.ts +++ b/src/models/stratum-messages/SubscriptionMessage.ts @@ -41,7 +41,7 @@ export class SubscriptionMessage extends StratumBaseMessage { public static refineUserAgent(userAgent: string): string { // return userAgent; - userAgent = userAgent.split(' ')[0].split('/')[0].split('V')[0]; + userAgent = userAgent.split(' ')[0].split('/')[0].split('V')[0].split('-')[0]; if (userAgent.includes('bosminer') || userAgent.includes('bOS')) { userAgent = 'Braiins OS';