Skip to content

Commit

Permalink
add bind address
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Chang <[email protected]>
  • Loading branch information
aa65535 committed May 18, 2018
1 parent 6d24a52 commit 399d966
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 548 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ChinaDNS
PKG_VERSION:=1.3.2
PKG_RELEASE:=6
PKG_RELEASE:=7

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/aa65535/openwrt-chinadns/releases/download/v$(PKG_VERSION)
PKG_MD5SUM:=c529ac231aed4e5874251639f77e92de
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/aa65535/ChinaDNS.git
PKG_SOURCE_VERSION:=d17e52e041573e705287ae8735def6785e8014ef
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz

PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jian Chang <[email protected]>

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)

PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
Expand Down
1 change: 1 addition & 0 deletions files/chinadns.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ config chinadns
option enable '0'
option bidirectional '0'
option chnroute '/etc/chinadns_chnroute.txt'
option addr '0.0.0.0'
option port '5353'
option server '114.114.114.114,8.8.4.4'
1 change: 1 addition & 0 deletions files/chinadns.init
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ start_instance() {
procd_set_param respawn
procd_set_param stderr 1
procd_set_param command /usr/bin/chinadns -m
append_parm $1 addr "-b"
append_parm $1 port "-p"
append_parm $1 server "-s"
append_parm $1 chnroute "-c"
Expand Down
106 changes: 0 additions & 106 deletions patches/0001-refine-chnroute-list.patch

This file was deleted.

Loading

2 comments on commit 399d966

@lvii
Copy link

@lvii lvii commented on 399d966 May 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前的 patch 都没用了么?

@pexcn
Copy link
Contributor

@pexcn pexcn commented on 399d966 May 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.