Skip to content

Commit

Permalink
luci-app-ssr-plus: Fix link failure for latest Xray version.
Browse files Browse the repository at this point in the history
1、已完美修复Xray更新到2024.9.30版本后,无法连接服务器导致不能科学上网问题;
2、本次修改已完美兼容1.8.24及以下版本,即使服务端节点为旧版本也正常使用。
3、本次修改已完美修改socks 的配置用以适配新旧Xray版本。
4、WireGuard 配置:替换kernelMode为noKernelTun,见:XTLS/Xray-core@9bdf72d
  • Loading branch information
zxlhhyccc authored Oct 24, 2024
1 parent 9aaeb10 commit fe9d906
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions luci-app-ssr-plus/root/etc/init.d/shadowsocksr
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ start_udp() {
;;
v2ray)
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
ln_start_bin $(first_type xray v2ray) v2ray run -config $udp_config_file
ln_start_bin $(first_type xray v2ray) v2ray run -c $udp_config_file
echolog "UDP TPROXY Relay:$($(first_type "xray" "v2ray") version | head -1) Started!"
;;
trojan) #client
Expand Down Expand Up @@ -531,7 +531,7 @@ start_shunt() {
v2ray)
local tmp_port=${tmp_local_port:-$tmp_shunt_local_port}
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port $tmp_port
ln_start_bin $(first_type xray v2ray) v2ray run -config $shunt_config_file
ln_start_bin $(first_type xray v2ray) v2ray run -c $shunt_config_file
shunt_dns_command
echolog "shunt:$($(first_type xray v2ray) version | head -1) Started!"
;;
Expand Down Expand Up @@ -651,7 +651,7 @@ start_local() {
v2ray)
if [ "$_local" == "2" ]; then
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
ln_start_bin $(first_type xray v2ray) v2ray run -config $local_config_file
ln_start_bin $(first_type xray v2ray) v2ray run -c $local_config_file
fi
echolog "Global_Socks5:$($(first_type "xray" "v2ray") version | head -1) Started!"
;;
Expand Down Expand Up @@ -746,7 +746,7 @@ Start_Run() {
;;
v2ray)
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
ln_start_bin $(first_type xray v2ray) v2ray run -config $tcp_config_file
ln_start_bin $(first_type xray v2ray) v2ray run -c $tcp_config_file
echolog "Main node:$($(first_type xray v2ray) version | head -1) Started!"
;;
trojan)
Expand Down

0 comments on commit fe9d906

Please sign in to comment.