Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickable URL #2654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
adds https:// or https:// before addres
  • Loading branch information
Aleksandar Angelov committed Jul 2, 2024
commit 105e2073bc10349c372877ea8de9b7deb092f430
6 changes: 3 additions & 3 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ func (e *Echo) configureServer(s *http.Server) error {
e.Listener = l
}
if !e.HidePort {
e.colorer.Printf("⇨ http server started on %s\n", e.colorer.Green(e.Listener.Addr()))
e.colorer.Printf("⇨ http server started on https://%s\n", e.colorer.Green(e.Listener.Addr()))
}
return nil
}
Expand All @@ -810,7 +810,7 @@ func (e *Echo) configureServer(s *http.Server) error {
e.TLSListener = tls.NewListener(l, s.TLSConfig)
}
if !e.HidePort {
e.colorer.Printf("⇨ https server started on %s\n", e.colorer.Green(e.TLSListener.Addr()))
e.colorer.Printf("⇨ https server started on https://%s\n", e.colorer.Green(e.TLSListener.Addr()))
}
return nil
}
Expand Down Expand Up @@ -861,7 +861,7 @@ func (e *Echo) StartH2CServer(address string, h2s *http2.Server) error {
e.Listener = l
}
if !e.HidePort {
e.colorer.Printf("⇨ http server started on %s\n", e.colorer.Green(e.Listener.Addr()))
e.colorer.Printf("⇨ http server started on https://%s\n", e.colorer.Green(e.Listener.Addr()))
}
e.startupMutex.Unlock()
return s.Serve(e.Listener)
Expand Down