Changed * to all

This commit is contained in:
Ryan Michela
2014-09-04 23:01:47 -07:00
parent 027605e743
commit 956f0cc3ef
2 changed files with 4 additions and 4 deletions

View File

@@ -35,8 +35,8 @@ public class SshdPlugin extends JavaPlugin {
sshd = SshServer.setUpDefaultServer();
sshd.setPort(getConfig().getInt("port", 22));
String host = getConfig().getString("listenAddress", "*");
sshd.setHost(host == "*" ? null : host);
String host = getConfig().getString("listenAddress", "all");
sshd.setHost(host.equals("all") ? null : host);
File hostKey = new File(getDataFolder(), "hostkey");
File authorizedKeys = new File(getDataFolder(), "authorized_keys");