Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Merge branch 'tls' into 1.1-development
Browse files Browse the repository at this point in the history
* tls:
  Add RunTLS
  • Loading branch information
bahlo committed Aug 3, 2014
2 parents 9cb4158 + 9088f7b commit 7ba97b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions goat.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ func New() *Router {
func (r *Router) Run(address string) error {
return http.ListenAndServe(address, r.chain())
}

// RunTLS starts the server, but expects HTTPS connections
func (r *Router) RunTLS(addr, certFile, keyFile string) error {
return http.ListenAndServeTLS(addr, certFile, keyFile, r.chain())
}

0 comments on commit 7ba97b8

Please sign in to comment.