change ssr plus pdnsd port to 5335

This commit is contained in:
coolsnowwolf 2018-10-23 01:14:52 +08:00
parent a828ffad85
commit 7fad3139d3
6 changed files with 5184 additions and 5184 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus
LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=26
PKG_RELEASE:=27
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -35,8 +35,8 @@ google.com
google.com.hk
gstatic.com
googleusercontent.com
googlepages.com
googlevideo.com
googlepages.com
googlevideo.com
googlecode.com
googleapis.com
googlesource.com

View File

@ -199,7 +199,7 @@ global {
pid_file = /var/run/pdnsd.pid;
run_as="nobody";
server_ip = 127.0.0.1;
server_port = 5353;
server_port = 5335;
status_ctl = on;
query_method = tcp_only;
min_ttl=1h;
@ -240,7 +240,7 @@ start_tunnel() {
local local_dns_port=$(uci_get_by_type global tunnel_port)
if [ "$run_mode" = "gfw" ] ;then
local_dns_port=5353
local_dns_port=5335
fi
/usr/bin/ssr-tunnel \

View File

@ -26,6 +26,6 @@ BEGIN { prev = "________"; } {
generate_china_banned /tmp/gfw.b64 > /tmp/gfw.txt
rm -f /tmp/gfwlist.txt
sed '/.*/s/.*/server=\/\.&\/127.0.0.1#5353\nipset=\/\.&\/gfwlist/' /tmp/gfw.txt >/tmp/gfwnew.txt
sed '/.*/s/.*/server=\/\.&\/127.0.0.1#5335\nipset=\/\.&\/gfwlist/' /tmp/gfw.txt >/tmp/gfwnew.txt
rm -f /tmp/gfw.txt

View File

@ -1,5 +1,5 @@
#!/bin/sh
awk '!/^$/&&!/^#/{printf("ipset=/.%s/'"gfwlist"'\n",$0)}' /etc/config/gfw.list > /etc/dnsmasq.ssr/custom_forward.conf
awk '!/^$/&&!/^#/{printf("server=/.%s/'"127.0.0.1#5353"'\n",$0)}' /etc/config/gfw.list >> /etc/dnsmasq.ssr/custom_forward.conf
awk '!/^$/&&!/^#/{printf("server=/.%s/'"127.0.0.1#5335"'\n",$0)}' /etc/config/gfw.list >> /etc/dnsmasq.ssr/custom_forward.conf