Skip to content

Commit

Permalink
1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
CerteKim committed Oct 7, 2021
1 parent 2860000 commit 4748093
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,24 @@ ui_print "- Copy xray config and data files"
[ -f /data/adb/xray/confs/proxy.json ] || \
unzip -j -o "${ZIPFILE}" "xray/etc/confs/*" -d /data/adb/xray/confs >&2
[ -f /data/adb/xray/appid.list ] || \
echo ALL > /data/adb/xray/appid.list
echo "ALL" > /data/adb/xray/appid.list
[ -f /data/adb/xray/ignore_out.list ] || \
touch /data/adb/xray/ignore_out.list
[ -f /data/adb/xray/ap.list ] || \
echo wlan+ > /data/adb/xray/ap.list
echo "wlan+" > /data/adb/xray/ap.list
[ -f /data/adb/xray/ipv6 ] || \
echo "enable" > /data/adb/xray/ipv6


# generate module.prop
ui_print "- Generate module.prop"
rm -rf $MODPATH/module.prop
touch $MODPATH/module.prop
echo "id=xray4magisk" > $MODPATH/module.prop
echo "name=Xray4Magisk" >> $MODPATH/module.prop
echo -n "version=Module v1.5.2, Core " >> $MODPATH/module.prop
echo -n "version=Module v1.5.3, Core " >> $MODPATH/module.prop
echo ${latest_xray_version} >> $MODPATH/module.prop
echo "versionCode=20210923" >> $MODPATH/module.prop
echo "versionCode=20211007" >> $MODPATH/module.prop
echo "author=CerteKim" >> $MODPATH/module.prop
echo "description=xray core with service scripts for Android" >> $MODPATH/module.prop

Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=xray4magisk
name=Xray4Magisk
version=v1.5.2
versionCode=20210923
version=v1.5.3
versionCode=20211007
author=CerteKim
description=Xray core with service scripts for Android
4 changes: 2 additions & 2 deletions xray/scripts/xray.tproxy
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ disable_proxy() {

enable_ipv6

if [ -f /data/adb/xray/ipv6 ] ; then
if [ "$(head -1 /data/adb/xray/ipv6)" = "enable" ] ; then
echo "disable ipv6 proxy"
iptables="ip6tables -w 100"
stop_service
Expand All @@ -329,7 +329,7 @@ enable_proxy() {
echo "enable ipv4 proxy"
create_mangle_iptables

if [ -f /data/adb/xray/ipv6 ] ; then
if [ "$(head -1 /data/adb/xray/ipv6)" = "enable" ] ; then
echo "enable ipv6 proxy"
iptables="ip6tables -w 100"
create_mangle_iptables
Expand Down

0 comments on commit 4748093

Please sign in to comment.