Skip to content

Commit

Permalink
Merge pull request #50 from jaceksokol/master
Browse files Browse the repository at this point in the history
Resolve db host on reconnection
  • Loading branch information
alaisi authored Sep 17, 2017
2 parents df6446f + 626fcea commit 71e761c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public abstract class PgConnectionPool implements ConnectionPool {
final boolean pipeline;

public PgConnectionPool(PoolProperties properties) {
this.address = new InetSocketAddress(properties.getHostname(), properties.getPort());
this.address = InetSocketAddress.createUnresolved(properties.getHostname(), properties.getPort());
this.username = properties.getUsername();
this.password = properties.getPassword();
this.database = properties.getDatabase();
Expand Down

0 comments on commit 71e761c

Please sign in to comment.