Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Nov 8, 2024
1 parent 02534a4 commit 9c10b96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/sun/mail/iap/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -680,6 +682,8 @@ protected synchronized String getLocalHost() {
localHostName = "[" + localHost.getHostAddress() + "]";
}
}
if (TextUtils.isEmpty(localHostName))
localHostName = "localhost";
return localHostName;
}

Expand Down

0 comments on commit 9c10b96

Please sign in to comment.