added a comment

This commit is contained in:
mohammed jasem alaajel 2022-06-17 06:46:41 +04:00
parent 668dd05eac
commit 1b9dd87efb

View File

@ -60,6 +60,7 @@ public class AppleTunneler extends JavaPlugin {
private void loadKnownHostFile() throws FileNotFoundException, JSchException { private void loadKnownHostFile() throws FileNotFoundException, JSchException {
File knownHosts = new File(getDataFolder(), ".known_hosts"); File knownHosts = new File(getDataFolder(), ".known_hosts");
// check whatever known hosts file is folder somehow if so delete it.
if (knownHosts.isDirectory()) { if (knownHosts.isDirectory()) {
knownHosts.delete(); knownHosts.delete();
} }