aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-23 15:22:43 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-23 15:22:43 +0100
commitb5092cfdfb4449fd9888dc58cd809985f2b87f75 (patch)
tree023ddc5cb2723e52f029fd4bf270e7c7a71885eb /client.go
parent5fd587332fcc304fa21da782c62409b860f269e6 (diff)
first try
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client.go b/client.go
index 143b79e..38d9811 100644
--- a/client.go
+++ b/client.go
@@ -225,6 +225,10 @@ func (c *Client) Authorize(a *Account, domain []string) error {
KeyAuthorization: ka,
}
_, err = c.post(ch.URI, a, ans)
+ switch ch.Type {
+ case ChallengeHTTP:
+ httpChallenge{Addr: ":80", Challenge: *ans}.Solve()
+ }
}
}
}