Skip to content

Commit

Permalink
Convert the chip port to a constant, move 5543 to 5540 since that see…
Browse files Browse the repository at this point in the history
…ms the real constant
  • Loading branch information
andy31415 committed Jun 16, 2022
1 parent 332cde2 commit d37a5cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
public final class ControllerParams {
private final int udpListenPort;

private static final int LEGACY_GLOBAL_CHIP_PORT = 5540;

/** Creates a {@link ControllerParams} with default values. */
public ControllerParams() {
this(5543 + 1 /* To match old behavior of CHIP_PORT + 1 */);
this(LEGACY_GLOBAL_CHIP_PORT + 1 /* To match old behavior of CHIP_PORT + 1 */);
}

/** @param udpListenPort the UDP listening port, or 0 to pick any available port. */
Expand Down

0 comments on commit d37a5cd

Please sign in to comment.