Skip to content

Commit

Permalink
🐛 Add 30000 to local port bind to prevent conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 23, 2022
1 parent 43cfbbe commit e53e710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/port_forward/port_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func preRun(cmd *cobra.Command, args []string) error {
}

if len(args) == 0 {
conf.LocalPort = conf.Grammar.DefaultPort()
conf.LocalPort = 30000 + conf.Grammar.DefaultPort()
} else {
port, err := strconv.ParseUint(args[0], 10, 16)
if err != nil {
Expand Down

0 comments on commit e53e710

Please sign in to comment.