From 21ba0470753fbfc0dcd3809ee686802476a8df68 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 16 Feb 2019 22:42:12 +0800 Subject: [PATCH] Fix PTR issue --- ReadMe.md | 4 ++-- ReadMe_zh-CN.md | 4 ++-- src/dns_server.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index b493e54..f8d39b1 100755 --- a/ReadMe.md +++ b/ReadMe.md @@ -118,8 +118,8 @@ Download the matching version of the SmartDNS installation package. The correspo |Windows 10 WSL (Ubuntu)| smartdns.xxxxxxxx.x86_64.tar.gz|Windows 10 WSL ubuntu. |Standard Linux system (x86)| smartdns.xxxxxxxx.x86.tar.gz|Support for x86_64 systems. |ASUS native firmware (optware)|smartdns.xxxxxxx.mipsbig.ipk|Systems that support the MIPS big-end architecture, such as RT-AC55U, RT-AC66U. -|ASUS native firmware (optware)|smartdns.xxxxxxx.mipsel.ipk|System that supports the MIPS little endian architecture, such as the RT-AC68U. -|ASUS native firmware (optware)|smartdns.xxxxxxx.arm.ipk|System that supports the ARM small endian architecture, such as the RT-AC88U. +|ASUS native firmware (optware)|smartdns.xxxxxxx.mipsel.ipk|System that supports the MIPS little endian architecture. +|ASUS native firmware (optware)|smartdns.xxxxxxx.arm.ipk|System that supports the ARM small endian architecture, such as the RT-AC88U, RT-AC68U. |Padavan|smartdns.xxxxxxx.mipselsf.ipk|padavan Firmware. |openwrt 15.01|smartdns.xxxxxxxx.ar71xx.ipk|Support AR71XX MIPS system. |openwrt 15.01|smartdns.xxxxxxxx.ramips_24kec.ipk|Support small-end routers such as MT762X diff --git a/ReadMe_zh-CN.md b/ReadMe_zh-CN.md index 64d1545..2862539 100644 --- a/ReadMe_zh-CN.md +++ b/ReadMe_zh-CN.md @@ -118,8 +118,8 @@ rtt min/avg/max/mdev = 5.954/6.133/6.313/0.195 ms |Windows 10 WSL (ubuntu)| smartdns.xxxxxxxx.x86_64.tar.gz|支持Windows 10 WSL ubuntu系统。 |标准Linux系统(x86)| smartdns.xxxxxxxx.x86.tar.gz|支持x86系统。 |华硕原生固件(optware)|smartdns.xxxxxxx.mipsbig.ipk|支持MIPS大端架构的系统,如RT-AC55U, RT-AC66U. -|华硕原生固件(optware)|smartdns.xxxxxxx.mipsel.ipk|支持MIPS小端架构的系统,如RT-AC68U。 -|华硕原生固件(optware)|smartdns.xxxxxxx.arm.ipk|支持arm小端架构的系统,如RT-AC88U。 +|华硕原生固件(optware)|smartdns.xxxxxxx.mipsel.ipk|支持MIPS小端架构的系统。 +|华硕原生固件(optware)|smartdns.xxxxxxx.arm.ipk|支持arm小端架构的系统,如RT-AC68U。 |Padavan|smartdns.xxxxxxx.mipselsf.ipk|padavan固件。 |openwrt 15.01|smartdns.xxxxxxxx.ar71xx.ipk|支持AR71XX MIPS系统。 |openwrt 15.01|smartdns.xxxxxxxx.ramips_24kec.ipk|支持MT762X等小端路由器 diff --git a/src/dns_server.c b/src/dns_server.c index 18c2813..2fe8d67 100644 --- a/src/dns_server.c +++ b/src/dns_server.c @@ -1217,7 +1217,7 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe } } - if (strstr(request->domain, "0.0.0.0") != NULL) { + if (strstr(request->domain, "0.0.0.0.in-addr.arpa") != NULL) { found = 1; }