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");

View File

@ -1,6 +1,6 @@
# The IP addresses(s) the SSH server will listen on. Use a comma separated list for multiple addresses.
# Leave as * for all addresses.
listenAddress: *
# Leave as "all" for all addresses.
listenAddress: all
# The port the SSH server will listen on.
port: 22