Skip to content

Commit

Permalink
fix port sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 12, 2017
1 parent 2da7332 commit 76ebc32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class RedisSocketReplicator extends AbstractReplicator {

public RedisSocketReplicator(String host, int port, Configuration configuration) {
Objects.requireNonNull(host);
if (port <= 0) throw new IllegalArgumentException("illegal argument port: " + port);
if (port <= 0 || port > 65535) throw new IllegalArgumentException("illegal argument port: " + port);
Objects.requireNonNull(configuration);
this.host = host;
this.port = port;
Expand Down

0 comments on commit 76ebc32

Please sign in to comment.