v2rayA / v2raya-openwrt

opkg feed of v2rayA for OpenWrt users
https://sourceforge.net/projects/v2raya/files/openwrt/
333 stars 67 forks source link

OpwnWrt运行V2rayA后向日葵无法远程 #46

Closed fzxlzy closed 3 weeks ago

fzxlzy commented 4 months ago

OpwnWrt运行V2rayA后向日葵无法远程其他电脑 请问如何配置可以使用向日葵

aiamadeus commented 1 month ago

参考 https://github.com/v2rayA/v2rayA/discussions/1361 添加自定义 hook vi /etc/v2raya/core-hook.sh

#!/bin/sh

echo hook
jq '.inbounds[] |= if (.tag | index("transparent") >= 0) then (.sniffing.domainsExcluded = ["regexp:^[a-z0-9-.]*(?:oray|sunlogin)[a-z.]*$"]) else . end' /etc/v2raya/config.json > /etc/v2raya/temp.json
mv /etc/v2raya/temp.json /etc/v2raya/config.json

chmod +x /etc/v2raya/core-hook.sh 启用 hook vi /etc/config/v2raya: option core_hook '/etc/v2raya/core-hook.sh'

improve100 commented 4 weeks ago

我按你方法试了,还是用不了

Fisummer commented 3 weeks ago

我按你方法试了,还是用不了

我试了,可以,可能你操作有问题