From 9e38729932ed53d3376137d5af01b8fc41193112 Mon Sep 17 00:00:00 2001 From: wario_is_here <117512622+warioishere@users.noreply.github.com> Date: Thu, 28 Nov 2024 23:27:50 +0100 Subject: [PATCH] switch to old useragent method Braiins OS Miner are not anymore identified correctly, they only show up by their firmware year version. --- src/models/stratum-messages/SubscriptionMessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/stratum-messages/SubscriptionMessage.ts b/src/models/stratum-messages/SubscriptionMessage.ts index 318988e..6732f2b 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].split('-')[0]; + userAgent = userAgent.split(' ')[0].split('/')[0].split('V')[0]; if (userAgent.includes('bosminer') || userAgent.includes('bOS')) { userAgent = 'Braiins OS'; @@ -50,4 +50,4 @@ export class SubscriptionMessage extends StratumBaseMessage { } return userAgent; } -} \ No newline at end of file +}