fixed a mistake

This commit is contained in:
mohammed jasem alaajel 2022-06-17 06:43:26 +04:00
parent 8d721dea20
commit 668dd05eac
2 changed files with 2 additions and 4 deletions

View File

@ -40,10 +40,7 @@ public class AppleTunneler extends JavaPlugin {
} }
File[] files = file.listFiles(); File[] files = file.listFiles();
if (files == null) { if (files == null || files.length == 0) {
return;
}
if (files.length == 0) {
getLogger().warning("no Identities files found, please put them in " + file.getPath()); getLogger().warning("no Identities files found, please put them in " + file.getPath());
throw new RuntimeException("no Identities files found"); throw new RuntimeException("no Identities files found");
} }

View File

@ -3,6 +3,7 @@
# username for ssh # username for ssh
username: apple username: apple
# host eg: domains can be used. # host eg: domains can be used.
# host: idk.example.com
host: 192.168.0.100 host: 192.168.0.100
# ssh port # ssh port
port: 22 port: 22