Skip to content

Commit

Permalink
refactor: Update default address for HTTPS server in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
renuka-fernando committed Jun 15, 2024
1 parent f6888fe commit dc288b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ func main() {
log.Println("[INFO] Invoke '/empty' to return empty response")

if addr == "" {
addr = ":8443" // Default address for HTTPS server
if https {
addr = ":8443"
} else {
addr = ":8080"
}
}
log.Println("[INFO] Server listening at " + addr)

Expand Down

0 comments on commit dc288b5

Please sign in to comment.