mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Merge pull request #555 from whaon/patch-1
renew an InetSocketAddress to resolve address again
This commit is contained in:
@@ -50,7 +50,10 @@ public class MysqlConnector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MysqlConnector(InetSocketAddress address, String username, String password){
|
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.username = username;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user