Skip to content

Commit

Permalink
user agent cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Wilson committed Oct 16, 2024
1 parent 4282233 commit 2912dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/stratum-messages/SubscriptionMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2912dd5

Please sign in to comment.