Commit graph

5 commits

Author SHA1 Message Date
Tianling Shen
5543e0925a
xray-core: init: add browser dialer support
Since v1.4.1, Xray has introduced a new feature to transfer data via
browsers, which can disguise itself as a normal browser to cheat
network censorship.

For more details, see https://github.com/XTLS/Xray-core/pull/421.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(backported from 736667ce6e)
2021-04-02 17:29:03 +08:00
Tianling Shen
56b6ca5d09
xray-core: init: add option to control FullConeNAT setting
Latest version of xray-core made a change to support FullCone NAT,
which would break UDP connection from v2ray-core backend server.
So added the option for v2ray-core users, to make sure UDP works
as expected.

Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
2021-02-13 01:43:41 +08:00
Tianling Shen
ae044501b3
xray-core: fix service start / reload
Fix starting problem:
Starting function should be named 'start_service' instead of 'start_instance'.

Fix reloading problem:
Register reload tigger for uci config itself.
And, xray does not support reload currently, so use legacy restart as reload.

Fixes: 6c9b96352f ("xray-core: add init script")

Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
2021-02-04 11:50:40 +08:00
Tianling Shen
6c9b96352f
xray-core: add init script
Add init script so the users could run it with their configs quickly.

Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
2021-02-04 06:29:58 +08:00
Tianling Shen
c8c2564012
xray-core: add example configs
Thry're from v2fly/v2ray-core wikis, used as examples.

Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
2021-02-04 06:29:48 +08:00