parkycai

Results comments of parkycai

在shouldInterceptRequest里自己加了, 搞定了

> Maybe have to do with this: [dotnet/runtime#49091](https://github.com/dotnet/runtime/issues/49091) I did not find out wether or where @parkycai added a new issue... seems to be a problem with singlefile+ selfcontained publish,...

> > if it's related to m1 codesign, try following command: > > Thx, maybe it is possible to integrate this into the automated build process as long as this...

``` if (r->Exists) { Format(l3_options, sizeof(l3_options), - ",route %r %r vpn_gateway", - &r->Network, &r->SubnetMask); + ",route %r %r %r", + &r->Network, &r->SubnetMask, &r->Gateway); StrCat(option_str, sizeof(option_str), l3_options); } ```

> What version are you using? This code is commented out in the somewhat recent pull that I have...: > > ``` > if 0 // Currently disabled > //...

> yes, I need to fix release machinery and emit new release hopefully will do that soon great! > What version are you using? This code is commented out in...

对于如下配置 ``` - {name: 0.5x印度福利, server: xxx.xxx.xxx, port: 16714, type: vless, uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, tls: true, tfo: false, flow: xtls-rprx-vision, skip-cert-verify: true, reality-opts: {public-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, short-id: "1600e237" }, servername: www.cloudflare.com, client-fingerprint:...

目前的临时解决方案是修改`yml_rules_change.sh`文件,在最后加上 ``` sed -i 's/^\([[:space:]]*short-id:[[:space:]]*\)\([0-9][^"'\''[:space:]]*\)\([[:space:]]*\)$/\1'\''\2'\''\3/' "$3" ``` 在openwrt环境测试通过

> 要特殊处理就在ruby里面反斜杠加引号 完全不懂Ruby……请大佬出手!

测了下114,有个小bug,YAML.rb 中, ``` SHORT_ID_REGEX = /(\s+short-id:\s*)([^"\s\n]+)/.freeze ``` 漏了一种short-id被加上单引号的匹配,改为 ``` SHORT_ID_REGEX = /(\s+short-id:\s*)([^"'\s\n]+)/.freeze ``` 测试通过 正巧配置里有个server的short-id是被单引号括上的,处理之后前面的换行符+short-id:都没了,也许是因为`QUOTED_VALUE_REGEX`是有匹配单引号的?