Created attachment 150213 [details] dnscrypt-proxy rc-script I would like to suggest a modified rc-script to support for multiple dnscrypt_proxy instances. One can use it in this way in the /etc/rc.conf: dnscrypt_proxy_enable="YES" dnscrypt_proxy_instances="dnscrypt_proxy_1 dnscrypt_proxy_2 dnscrypt_proxy_3" dnscrypt_proxy_1_resolver="dnscrypt.eu-nl" dnscrypt_proxy_1_flags="-a 127.0.0.2" dnscrypt_proxy_2_resolver="dnscrypt.eu-dk" dnscrypt_proxy_2_flags="-a 127.0.0.3" dnscrypt_proxy_3_resolver="cloudns-can" dnscrypt_proxy_3_flags="-a 127.0.0.4" I have no experience in writing rc-scripts, so it can be quite buggy, but it works for me.
Maintainer CC'd
*** Bug 195697 has been marked as a duplicate of this bug. ***
Change status from "new" to "open" since maintainer is aware of this proposal. (the PR "timed out" but this isn't the type of thing that would get committed without approval)
Created attachment 155292 [details] multi and single RC in one port Although I haven't been responsive, I did try to find for a perfect solution. With the CSV file I would hope multiple -R flags would be(come) possible. Personally I'd prefer to keep it simple, but I understand your point (and your use of it). I'm aware the script at https://gist.github.com/steakknife/02832ff104df3483c012 is compatible with single-mode. I haven't tested key-rollovers, which (I think) only dnscrypt.pl does seamlessly. If that appears to work as intended then I'd like to fully merge it. For now I made it an config option, so should please everyone (I hope).
A commit references this bug: Author: cs Date: Mon Sep 14 22:29:09 UTC 2015 New revision: 396939 URL: https://svnweb.freebsd.org/changeset/ports/396939 Log: Add support for multiple service instances PR: 195698 Submitted by: Igor <arabesc@bk.ru> Approved by: maintainer Changes: head/dns/dnscrypt-proxy/Makefile head/dns/dnscrypt-proxy/files/dnscrypt-proxy_multi.in head/dns/dnscrypt-proxy/files/pkg-message.in head/dns/dnscrypt-proxy/files/pkg-message_multi.in
Committed. Thank you very much.