mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-15 15:32:21 +08:00
fix lint violations
This commit is contained in:
@@ -7,12 +7,12 @@ import {
|
||||
stripUriScheme,
|
||||
} from './helpers'
|
||||
|
||||
export function URI_SSR(line: string): IProxyshadowsocksRConfig {
|
||||
const afterScheme = stripUriScheme(line, 'ssr', 'Invalid ssr uri')
|
||||
export function URI_SSR(uri: string): IProxyshadowsocksRConfig {
|
||||
const afterScheme = stripUriScheme(uri, 'ssr', 'Invalid ssr uri')
|
||||
if (!afterScheme) {
|
||||
throw new Error('Invalid ssr uri')
|
||||
}
|
||||
line = decodeBase64OrOriginal(afterScheme)
|
||||
const line = decodeBase64OrOriginal(afterScheme)
|
||||
|
||||
// handle IPV6 & IPV4 format
|
||||
let splitIdx = line.indexOf(':origin')
|
||||
|
||||
Reference in New Issue
Block a user