From ae9bcf84e4bb3252fb450effe393f266b7a4c6b5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 22 May 2016 04:25:34 +0200 Subject: Fallback directory --- provider.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'provider.go') diff --git a/provider.go b/provider.go index ea8fafc..22d193c 100644 --- a/provider.go +++ b/provider.go @@ -102,6 +102,9 @@ func DialProvider(directory string) (*Provider, error) { Transport: p, Timeout: time.Duration(timeout), } + if directory == "" { + directory = LE1 + } resp, err := p.Get(directory) if err != nil { return nil, err -- cgit v1.2.3