mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 13:21:43 +01:00
user agent cleanup
This commit is contained in:
parent
4282233d2f
commit
2912dd5071
@ -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