-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
8,855 additions
and
14,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=dns2socks | ||
PKG_VERSION:=2.1 | ||
PKG_RELEASE:=20200218 | ||
|
||
PKG_SOURCE:=SourceCode.zip | ||
PKG_SOURCE_SUBDIR:=DNS2SOCKS | ||
PKG_SOURCE_URL:=@SF/dns2socks | ||
PKG_MD5SUM:=ec82de936ad004cc940502cd2a1bff5b | ||
|
||
PKG_MAINTAINER:=ghostmaker | ||
PKG_LICENSE:=BSD-3-Clause | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
PKG_INSTALL:=1 | ||
PKG_USE_MIPS16:=0 | ||
PKG_BUILD_PARALLEL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/dns2socks/Default | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=IP Addresses and Names | ||
TITLE:=The utility to resolve DNS requests via a SOCKS5 tunnel. | ||
URL:=http://dns2socks.sourceforge.net/ | ||
MAINTAINER:=ghostmaker | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/dns2socks | ||
$(call Package/dns2socks/Default) | ||
endef | ||
|
||
define Package/dns2socks/description | ||
This is a utility to resolve DNS requests via a SOCKS5 tunnel and caches the answers. | ||
endef | ||
|
||
define Build/Prepare | ||
mkdir -p $(PKG_BUILD_DIR) | ||
unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR) | ||
endef | ||
|
||
define Build/Compile | ||
$(TARGET_CC) \ | ||
$(TARGET_CFLAGS) \ | ||
$(TARGET_CPPFLAGS) \ | ||
$(FPIC) \ | ||
-o $(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/$(PKG_NAME) \ | ||
$(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/DNS2SOCKS.c \ | ||
$(TARGET_LDFLAGS) -pthread | ||
endef | ||
|
||
define Build/Install | ||
endef | ||
|
||
define Package/dns2socks/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/$(PKG_NAME) $(1)/usr/bin/dns2socks | ||
endef | ||
|
||
$(eval $(call BuildPackage,dns2socks)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,3 @@ log_level:value(7,"Debug") | |
log_level.default="3" | ||
|
||
return m | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
msgid "Nps Setting" | ||
msgstr "Nps 内网穿透" | ||
|
||
msgid "Nps is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet." | ||
msgstr "Nps 是一种快速反向代理,可帮助您将 NAT 或防火墙后面的本地服务器公开到 Internet。" | ||
|
||
msgid "Must an IPv4 address" | ||
msgstr "必须是 IPv4 地址" | ||
|
||
msgid "vkey" | ||
msgstr "密钥(vkey)" | ||
|
||
msgid "Enable Compression" | ||
msgstr "使用压缩传输" | ||
|
||
msgid "Enable Encryption" | ||
msgstr "使用加密传输" | ||
|
||
msgid "The contents will be compressed to speed up the traffic forwarding speed, but this will consume some additional cpu resources." | ||
msgstr "压缩传输内容,加快流量转发速度,会额外消耗 CPU 资源。" | ||
|
||
msgid "Encrypted the communication between Npc and Nps, will effectively prevent the traffic intercepted." | ||
msgstr "加密传输 npc 与 nps 之间的通信内容,会有效防止流量被拦截。" | ||
|
||
msgid "<b style='color:green;'>Nps is running.</b>" | ||
msgstr "<b style='color:green;'>Nps 运行中</b>" | ||
|
||
msgid "<b style='color:red;'>Nps is not running.</b>" | ||
msgstr "<b style='color:red;'>Nps 未运行</b>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.