Mercurial > hg > Applications > TightVNC_orginal
changeset 41:0f260079879f
add setReuseAddress
author | one |
---|---|
date | Mon, 22 Oct 2012 17:51:02 +0900 |
parents | 3c072f2f39bb |
children | fe38611c4b2b |
files | src/viewer_swing/java/com/glavsoft/viewer/TreeConnectionManager.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/TreeConnectionManager.java Mon Oct 22 17:40:32 2012 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/TreeConnectionManager.java Mon Oct 22 17:51:02 2012 +0900 @@ -53,6 +53,7 @@ Viewer.logger.info("Connecting to host " + connectionParams.hostName + ":" + connectionParams.portNumber); try { socket = new Socket(connectionParams.hostName, connectionParams.portNumber); + socket.setReuseAddress(true); } catch (UnknownHostException e) { Viewer.logger.severe("Unknown host: " + connectionParams.hostName); showConnectionErrorDialog("Unknown host: '" + connectionParams.hostName + "'");