From aa2274b1b240535cbfb5f6a0872927fb93d9785c Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 5 Dec 2008 08:44:47 +0000 Subject: [PATCH] Fix default ports handling git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@200 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/AbstractServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/AbstractServer.java b/src/java/davmail/AbstractServer.java index 49919561..41d154d8 100644 --- a/src/java/davmail/AbstractServer.java +++ b/src/java/davmail/AbstractServer.java @@ -42,9 +42,9 @@ public abstract class AbstractServer extends Thread { String bindAddress = Settings.getProperty("davmail.bindAddress"); //noinspection SocketOpenedButNotSafelyClosed if (bindAddress == null || bindAddress.length() == 0) { - serverSocket = new ServerSocket(port); + serverSocket = new ServerSocket(this.port); } else { - serverSocket = new ServerSocket(port, 0, Inet4Address.getByName(bindAddress)); + serverSocket = new ServerSocket(this.port, 0, Inet4Address.getByName(bindAddress)); } }