Skip to content

Commit

Permalink
fix RedisServer use conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
shalk committed Aug 23, 2022
1 parent 10c7f44 commit 5765a80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/redis/embedded/RedisServerBuilder.java
Expand Up @@ -79,7 +79,9 @@ public RedisServerBuilder setting(String configLine) {
}

public RedisServer build() {
setting("bind "+bind);
if(redisConf == null) {
setting("bind " + bind);
}
tryResolveConfAndExec();
List<String> args = buildCommandArgs();
return new RedisServer(args, port, tlsPort);
Expand Down

0 comments on commit 5765a80

Please sign in to comment.