aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-05 02:09:33 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-05 02:09:33 +0200
commit2915c9453086366c970c9ab602f2ec670ca29234 (patch)
treefef792034e861fdbbad8814603e4e07c2e61201d /provider.go
parentd3bd76f5c8a0509869e749e13d6a6edafdd3af66 (diff)
Extract Thumb
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/provider.go b/provider.go
index ebb44f5..a43d67a 100644
--- a/provider.go
+++ b/provider.go
@@ -74,11 +74,15 @@ func DialProvider(directory string, key crypto.PrivateKey) (*Provider, error) {
if err != nil {
return nil, err
}
+ thumb, err := Thumb(key)
+ if err != nil {
+ return nil, err
+ }
p := &Provider{
Client: http.Client{
Transport: sig,
},
- thumb: sig.thumb,
+ thumb: thumb,
}
if directory == "" {
directory = LE1