mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Small fix
This commit is contained in:
parent
02534a4416
commit
9c10b9658a
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
|
||||
package com.sun.mail.iap;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.util.Properties;
|
||||
import java.io.*;
|
||||
import java.nio.channels.SocketChannel;
|
||||
|
@ -680,6 +682,8 @@ public class Protocol {
|
|||
localHostName = "[" + localHost.getHostAddress() + "]";
|
||||
}
|
||||
}
|
||||
if (TextUtils.isEmpty(localHostName))
|
||||
localHostName = "localhost";
|
||||
return localHostName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue