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 = SshServer.setUpDefaultServer();
sshd.setPort(getConfig().getInt("port", 22)); sshd.setPort(getConfig().getInt("port", 22));
String host = getConfig().getString("listenAddress", "*"); String host = getConfig().getString("listenAddress", "all");
sshd.setHost(host == "*" ? null : host); sshd.setHost(host.equals("all") ? null : host);
File hostKey = new File(getDataFolder(), "hostkey"); File hostKey = new File(getDataFolder(), "hostkey");
File authorizedKeys = new File(getDataFolder(), "authorized_keys"); 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. # The IP addresses(s) the SSH server will listen on. Use a comma separated list for multiple addresses.
# Leave as * for all addresses. # Leave as "all" for all addresses.
listenAddress: * listenAddress: all
# The port the SSH server will listen on. # The port the SSH server will listen on.
port: 22 port: 22