Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Auto update for mosdns v4.0.0-alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
fangqiuming committed Jun 12, 2022
1 parent a6db57c commit cd511b6
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 37 deletions.
2 changes: 1 addition & 1 deletion mosdns/control/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: mosdns
Version: v3.9.0
Version: v4.0.0-alpha1
SourceName: mosdns
License: GPL-3.0
Section: net
Expand Down
21 changes: 19 additions & 2 deletions mosdns/data/etc/init.d/mosdns
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2020 IrineSistiana
#
# Copyright (C) 2020-2022, IrineSistiana
#
# This file is part of mosdns.
#
# mosdns is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# mosdns is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

START=99
USE_PROCD=1
Expand All @@ -12,7 +29,7 @@ CONF=./config.yaml # where is the config file, it can be a relative path to $R

start_service() {
procd_open_instance
procd_set_param command $PROG -dir $RES_DIR -c $CONF
procd_set_param command $PROG start -d $RES_DIR -c $CONF

procd_set_param user root
procd_set_param stdout 1
Expand Down
58 changes: 24 additions & 34 deletions mosdns/data/etc/mosdns/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,28 @@ log:
file: ""
err_file: ""
info_file: ""
library: []
plugin:
- tag: server
type: server
log:
level: ""
file: ""
err_file: ""
info_file: ""
data_providers:
- tag: data1
file: data.txt
auto_reload: true
plugins:
- tag: tag
type: type
args:
entry:
- forward_google
server:
- addr: 127.0.0.1:5353
protocol: udp
- addr: 127.0.0.1:5353
protocol: tcp
- addr: '[::1]:5353'
protocol: udp
- addr: '[::1]:5353'
protocol: tcp
- tag: forward_google
type: forward
log:
level: ""
file: ""
err_file: ""
info_file: ""
args:
upstream:
- addr: https://dns.google/dns-query
ip_addr:
- 8.8.8.8
- 2001:4860:4860::8888
include: []
key: value
sequences:
- tag: logic1
exec:
- exec1
- exec2
servers:
- exec: logic1
timeout: 0
listeners:
- protocol: udp
addr: 127.0.0.1:5353
cert: ""
key: ""
url_path: ""
get_user_ip_from_header: ""
idle_timeout: 0
Binary file modified mosdns/data/usr/bin/mosdns
Binary file not shown.

0 comments on commit cd511b6

Please sign in to comment.