Skip to content

Commit 1584b66

Browse files
authored
Merge pull request thuantran#468 from thuantran/dev
v2.5.9
2 parents e2f4983 + 6ce769f commit 1584b66

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

gen/manager

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ dnsmasq_params() {
9898
if { ! readlink -f /etc/resolv.conf | grep -qE '^/rom/etc/resolv.conf' && [ "${DNSCRYPT_LOCAL}" = "YES" ]; }; then { mount -o bind /rom/etc/resolv.conf /tmp/resolv.conf; }; fi
9999
elif [ -n "$1" ] && nvram get rc_support | grep -q 'mtlancfg'; then
100100
CONFIG="/etc/dnsmasq-${1}.conf"
101-
LAN_IF_SDN="$(nvram get lan"${1}"_ifname)"
102-
[ -z "${LAN_IF_SDN}" ] && LAN_IF_SDN="$(nvram get br"${1}"_ifname)"
101+
LAN_IF_SDN="$(get_mtlan | awk -v idx="$1" '/^[[:space:]]*\|-enable:/ {e=""; br=""; sdn=""} /^[[:space:]]*\|-enable:/ {s=index($0,"["); c=index($0,"]"); if(s>0&&c>s) e=substr($0,s+1,c-s-1)} /^[[:space:]]*\|-br_ifname:/ {s=index($0,"["); c=index($0,"]"); if(s>0&&c>s) br=substr($0,s+1,c-s-1)} /^[[:space:]]*\|-sdn_idx:/ {s=index($0,"["); c=index($0,"]"); if(s>0&&c>s) {sdn=substr($0,s+1,c-s-1); if(sdn==idx&&e=="1"){print br; exit}}}')"
103102
if [ -n "${LAN_IF_SDN}" ]; then
104103
append_on_demand "${CONFIG}" "no-resolv"
105104
sed -i "/^servers-file=.*$/d" "${CONFIG}"

gen/manager.md5sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d9e210ec15c21b44d614ef2594b876dc
1+
fcd4262a558d0fd78e44dceae7bfed4b

installer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██║ ██║ ██╔════╝██╔══██╗ bigeyes0x0 #
1717
#██║██╔██╗ ██║███████╗ ██║ ███████║██║ ██║ █████╗ ██████╔╝ Current Maintainer: #
1818
#██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║ ██╔══╝ ██╔══██╗ SomeWhereOverTheRainBow #
19-
#██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██║ ██║ v2.5.8 #
19+
#██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██║ ██║ v2.5.9 #
2020
#╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝ #
2121
###################################################################################################################
2222

@@ -30,7 +30,7 @@
3030
export LC_ALL=C
3131
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:${PATH}"
3232

33-
DI_VERSION="v2.5.8"
33+
DI_VERSION="v2.5.9"
3434
export DI_VERSION
3535
readonly API_FILE="/tmp/DI_GIT_API_$$.json"
3636
readonly LATEST_URL="https://api.github.com/repos/jedisct1/dnscrypt-proxy/releases/latest"

installer.md5sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
264056374a0978016c552cd03553fae8
1+
84c06b403083749dcd1e2e8e3d4133d4

0 commit comments

Comments
 (0)