mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-10 09:02:30 +08:00
Use result of fmt.Errorf call (#1668)
This commit is contained in:
parent
c42f25bd72
commit
5717c8255a
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func runTailSQLService(ctx context.Context, logf logger.Logf, stateDir, dbPath s
|
||||||
// When serving TLS, add a redirect from HTTP on port 80 to HTTPS on 443.
|
// When serving TLS, add a redirect from HTTP on port 80 to HTTPS on 443.
|
||||||
certDomains := tsNode.CertDomains()
|
certDomains := tsNode.CertDomains()
|
||||||
if len(certDomains) == 0 {
|
if len(certDomains) == 0 {
|
||||||
fmt.Errorf("no cert domains available for HTTPS")
|
return fmt.Errorf("no cert domains available for HTTPS")
|
||||||
}
|
}
|
||||||
base := "https://" + certDomains[0]
|
base := "https://" + certDomains[0]
|
||||||
go http.Serve(lst, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
go http.Serve(lst, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in a new issue