mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +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;
|
package com.sun.mail.iap;
|
||||||
|
|
||||||
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.channels.SocketChannel;
|
import java.nio.channels.SocketChannel;
|
||||||
|
@ -680,6 +682,8 @@ public class Protocol {
|
||||||
localHostName = "[" + localHost.getHostAddress() + "]";
|
localHostName = "[" + localHost.getHostAddress() + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (TextUtils.isEmpty(localHostName))
|
||||||
|
localHostName = "localhost";
|
||||||
return localHostName;
|
return localHostName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue