Skip to content

Commit fa04038

Browse files
committed
BUG/MINOR: set controller port only if its not set
1 parent 9e43711 commit fa04038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func main() {
7272
logger.ShowFilename(true)
7373

7474
// backwards compatibility with 1.7
75-
if osArgs.PprofEnabled {
75+
if osArgs.PprofEnabled && osArgs.ControllerPort == 0 {
7676
osArgs.ControllerPort = 6060
7777
}
7878

0 commit comments

Comments
 (0)