Renamed "host" to "listenAddress"

This commit is contained in:
Ryan Michela
2014-08-17 22:41:53 -07:00
parent be9c53bf6f
commit 027605e743
4 changed files with 7 additions and 6 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("host", "");
sshd.setHost(host == "" ? null : host);
String host = getConfig().getString("listenAddress", "*");
sshd.setHost(host == "*" ? null : host);
File hostKey = new File(getDataFolder(), "hostkey");
File authorizedKeys = new File(getDataFolder(), "authorized_keys");