Merge pull request #555 from whaon/patch-1

renew an InetSocketAddress to resolve address again
This commit is contained in:
agapple
2018-03-15 14:33:05 +08:00
committed by GitHub
@@ -50,7 +50,10 @@ public class MysqlConnector {
}
public MysqlConnector(InetSocketAddress address, String username, String password){
this.address = address;
String addr = address.getHostString();
int port = address.getPort();
this.address = new InetSocketAddress(addr, port);
this.username = username;
this.password = password;
}