style: gofmt -w -s -d dnscrypt-proxy

This commit is contained in:
Markus Linnala 2019-10-03 16:46:37 +03:00 committed by Frank Denis
parent 5e5d1059d7
commit ab94e7eb8a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package main
import (
"errors"
"net"
"time"
"time"
"github.com/jedisct1/dlog"
)

View File

@ -11,7 +11,7 @@ func (proxy *Proxy) SystemDListeners() error {
files := activation.Files(true)
if len(files) > 0 {
if (len(proxy.userName) > 0 || proxy.child) {
if len(proxy.userName) > 0 || proxy.child {
dlog.Fatal("Systemd activated sockets are incompatible with privilege dropping. Remove activated sockets and fill `listen_addresses` in the dnscrypt-proxy configuration file instead.")
}
dlog.Warn("Systemd sockets are untested and unsupported - use at your own risk")