Changed * to all
This commit is contained in:
parent
027605e743
commit
956f0cc3ef
@ -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");
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user