summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoredward-p2019-10-17 22:26:07 +0800
committeredward-p2019-10-17 22:26:07 +0800
commit06fd6a7c311ec94087c99e2ed11bb1f2a05d34ac (patch)
treea32520466e0f8482d5013e18d0a88f420992a934
parent88cea6255864ee2785cf6376e5be961ee0477416 (diff)
downloadaur-06fd6a7c311ec94087c99e2ed11bb1f2a05d34ac.tar.gz
dnsproxy-adguard: more secure service
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--dnsproxy-adguard.service4
3 files changed, 7 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8d2b07a1e85..8aa959fced22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = dnsproxy-adguard
pkgdesc = Simple DNS proxy with DoH, DoT, and DNSCrypt support by AdguardTeam
pkgver = 0.19.6
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/AdguardTeam/dnsproxy
arch = x86_64
license = Apache
@@ -9,7 +9,7 @@ pkgbase = dnsproxy-adguard
makedepends = git
source = dnsproxy-adguard.service
source = https://github.com/AdguardTeam/dnsproxy/archive/v0.19.6.tar.gz
- sha256sums = fe3598144edf12bcdbfe2a9e7480a96fbbb345f74631d1f9c938b2d3e46c9c90
+ sha256sums = e10bee304ce60088e523b0925c85a7c0640eaf4b2a686d301de565290e70560a
sha256sums = a9b100a5f1ec7ca0a8fe30ca6061c3541d13c43d9b7c4e77ad0b394a9e9505b8
pkgname = dnsproxy-adguard
diff --git a/PKGBUILD b/PKGBUILD
index 14eda5065bcd..51899edf3004 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_projectname=dnsproxy
pkgname=dnsproxy-adguard
pkgver=0.19.6
-pkgrel=1
+pkgrel=2
pkgdesc="Simple DNS proxy with DoH, DoT, and DNSCrypt support by AdguardTeam"
arch=('x86_64')
url="https://github.com/AdguardTeam/dnsproxy"
@@ -11,7 +11,7 @@ license=('Apache')
source=("dnsproxy-adguard.service"
"https://github.com/AdguardTeam/dnsproxy/archive/v${pkgver}.tar.gz")
makedepends=("go" "git")
-sha256sums=('fe3598144edf12bcdbfe2a9e7480a96fbbb345f74631d1f9c938b2d3e46c9c90'
+sha256sums=('e10bee304ce60088e523b0925c85a7c0640eaf4b2a686d301de565290e70560a'
'a9b100a5f1ec7ca0a8fe30ca6061c3541d13c43d9b7c4e77ad0b394a9e9505b8')
build(){
diff --git a/dnsproxy-adguard.service b/dnsproxy-adguard.service
index 50f23dc1782b..2275aef85079 100644
--- a/dnsproxy-adguard.service
+++ b/dnsproxy-adguard.service
@@ -3,8 +3,10 @@ Description=Simple DNS proxy with DoH, DoT, and DNSCrypt support by AdguardTeam
After=network.target
[Service]
+Type=simple
+User=nobody
+Group=nobody
ExecStart=/usr/bin/dnsproxy-adguard -l 127.0.0.1 -p 5353 -u tls://8.8.8.8 -u tls://8.8.4.4 -u https://mozilla.cloudflare-dns.com/dns-query -u https://dns.adguard.com/dns-query -u tls://9.9.9.9 -u tls://dns.adguard.com --cache --all-servers
-Restart=always
[Install]
WantedBy=default.target