Fix default ports handling
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@200 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8290b52ff0
commit
aa2274b1b2
|
@ -42,9 +42,9 @@ public abstract class AbstractServer extends Thread {
|
||||||
String bindAddress = Settings.getProperty("davmail.bindAddress");
|
String bindAddress = Settings.getProperty("davmail.bindAddress");
|
||||||
//noinspection SocketOpenedButNotSafelyClosed
|
//noinspection SocketOpenedButNotSafelyClosed
|
||||||
if (bindAddress == null || bindAddress.length() == 0) {
|
if (bindAddress == null || bindAddress.length() == 0) {
|
||||||
serverSocket = new ServerSocket(port);
|
serverSocket = new ServerSocket(this.port);
|
||||||
} else {
|
} else {
|
||||||
serverSocket = new ServerSocket(port, 0, Inet4Address.getByName(bindAddress));
|
serverSocket = new ServerSocket(this.port, 0, Inet4Address.getByName(bindAddress));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue