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 = 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");
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user