feat: 支持 Surfboard(前端 > 2.14.27)

This commit is contained in:
xream
2023-12-27 00:24:06 +08:00
parent 3717630c49
commit 00d0bd54fb
6 changed files with 217 additions and 27 deletions

View File

@@ -11,6 +11,8 @@ export function getPlatformFromHeaders(headers) {
}
if (UA.indexOf('Quantumult%20X') !== -1) {
return 'QX';
} else if (UA.indexOf('Surfboard') !== -1) {
return 'Surfboard';
} else if (UA.indexOf('Surge Mac') !== -1) {
return 'SurgeMac';
} else if (UA.indexOf('Surge') !== -1) {