Skip to content

Commit

Permalink
fix: link (#62)
Browse files Browse the repository at this point in the history
* fix: link

* add 1.22 test
  • Loading branch information
hwbrzzl authored Jun 7, 2024
1 parent 82a45af commit 2719d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ jobs:
test:
strategy:
matrix:
go:
- '1.21'
go: [ '1.21', '1.22' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -23,8 +22,7 @@ jobs:
windows:
strategy:
matrix:
go:
- '1.21'
go: [ '1.21', '1.22' ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions route.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (r *Route) Run(host ...string) error {
}

r.outputRoutes()
color.Green().Println(termlink.Link("[HTTP] Listening and serving HTTP on", host[0]))
color.Green().Println(termlink.Link("[HTTP] Listening and serving HTTP on", "http://"+host[0]))

server := &http.Server{
Addr: host[0],
Expand Down Expand Up @@ -133,7 +133,7 @@ func (r *Route) RunTLSWithCert(host, certFile, keyFile string) error {
}

r.outputRoutes()
color.Green().Println(termlink.Link("[HTTPS] Listening and serving HTTPS on", host))
color.Green().Println(termlink.Link("[HTTPS] Listening and serving HTTPS on", "https://"+host))

return r.instance.RunTLS(host, certFile, keyFile)
}
Expand Down

0 comments on commit 2719d06

Please sign in to comment.