mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
renew an InetSocketAddress to resolve address again
resolve [issue427](https://github.com/alibaba/otter/issues/427)
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