()
| 37 | } |
| 38 | |
| 39 | func main() { |
| 40 | proxy := NewMultipleHostReverseProxy(proxyPath) |
| 41 | |
| 42 | if !*disableAutoHttps { |
| 43 | log.Infoln("Enabling experimental auto-https support") |
| 44 | s := NewAutoHttpsServer(*cachePath, *email, proxy) |
| 45 | go func() { |
| 46 | log.Fatal(s.ListenAndServeTLS("", "")) |
| 47 | }() |
| 48 | } |
| 49 | |
| 50 | log.Fatal(http.ListenAndServe(":"+*port, proxy)) |
| 51 | } |
nothing calls this directly
no test coverage detected