Skip to content

Commit cdeb386

Browse files
authored
Merge pull request #432 from mengqiy/zeroport
✨ stop allowing port 0
2 parents 4c45f5c + db147f0 commit cdeb386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (s *Server) setDefaults() {
7878
s.WebhookMux = http.NewServeMux()
7979
}
8080

81-
if s.Port < 0 {
81+
if s.Port <= 0 {
8282
s.Port = DefaultPort
8383
}
8484

0 commit comments

Comments
 (0)