Skip to content

Commit

Permalink
fix: return cors anno as nil if port is 443. (#4356)
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie authored Nov 28, 2023
1 parent f72c295 commit 6fc583a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/terminal/controllers/terminal_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func getSecretNamespace() string {
}

func (r *TerminalReconciler) getPort() string {
if r.terminalPort == "" {
if r.terminalPort == "" || r.terminalPort == "80" || r.terminalPort == "443" {
return ""
}
return ":" + r.terminalPort
Expand Down

0 comments on commit 6fc583a

Please sign in to comment.