This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] * Configuration: Don't fail when multiple servers specified for schemes

Zach DeCook
Message ID
DKIM signature
Download raw message
Patch: +0 -3
This allows you to specify a cal/carddav server while using a domain that has SRV
records for imap and smtp.

e.g. `go run ./cmd/alps ccel.org https://cloud.zachdecook.com/remote.php/dav/files/zach/`

(previously, this would crash)

 server.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/server.go b/server.go
index 7d7a431..ae39b8d 100644
--- a/server.go
+++ b/server.go
@@ -101,9 +101,6 @@ func (s *Server) Upstream(schemes ...string) (*url.URL, error) {
	if len(urls) == 0 {
		return nil, &NoUpstreamError{schemes}
	if len(urls) > 1 {
		return nil, fmt.Errorf("multiple upstream servers are configured for schemes %v", schemes)
	return urls[0], nil

Reply to thread Export thread (mbox)