mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-16 07:05:18 +08:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
// This function is exported for use by the Clash core
|
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
function main(config, _name) {
|
|
if (Array.isArray(config.proxies)) {
|
|
config.proxies.forEach((p, i) => {
|
|
if (p.type === 'hysteria' && typeof p.alpn === 'string') {
|
|
config.proxies[i].alpn = [p.alpn]
|
|
}
|
|
})
|
|
}
|
|
return config
|
|
}
|