mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-12 22:09:28 +02:00
user agent cleanup
This commit is contained in:
parent
3a1f3bba10
commit
d513dab932
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user