mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
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");
|
||||
//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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user