feat: Stash/clash.meta(mihomo) 支持 interface-name 字段

This commit is contained in:
xream
2024-03-04 11:43:07 +08:00
parent a4384f4f13
commit 739100c873
3 changed files with 49 additions and 12 deletions

View File

@@ -263,6 +263,10 @@ function safeMatch(parser, line) {
}
function lastParse(proxy) {
if (proxy.interface) {
proxy['interface-name'] = proxy.interface;
delete proxy.interface;
}
if (isValidPortNumber(proxy.port)) {
proxy.port = parseInt(proxy.port, 10);
}