Renamed "host" to "listenAddress"
This commit is contained in:
parent
be9c53bf6f
commit
027605e743
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.ryanmichela</groupId>
|
<groupId>com.ryanmichela</groupId>
|
||||||
<artifactId>SSHD</artifactId>
|
<artifactId>SSHD</artifactId>
|
||||||
<version>1.1.1</version>
|
<version>1.2</version>
|
||||||
<url>http://dev.bukkit.org/server-mods/sshd/</url>
|
<url>http://dev.bukkit.org/server-mods/sshd/</url>
|
||||||
|
|
||||||
<!-- Repositories -->
|
<!-- Repositories -->
|
||||||
|
@ -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("host", "");
|
String host = getConfig().getString("listenAddress", "*");
|
||||||
sshd.setHost(host == "" ? null : host);
|
sshd.setHost(host == "*" ? 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,5 +1,6 @@
|
|||||||
# The interface the SSH server will listen on. Leave blank for all interfaces.
|
# The IP addresses(s) the SSH server will listen on. Use a comma separated list for multiple addresses.
|
||||||
host:
|
# Leave as * for all addresses.
|
||||||
|
listenAddress: *
|
||||||
# The port the SSH server will listen on.
|
# The port the SSH server will listen on.
|
||||||
port: 22
|
port: 22
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: SSHD
|
name: SSHD
|
||||||
version: "1.1.1"
|
version: "1.2"
|
||||||
author: Ryan Michela
|
author: Ryan Michela
|
||||||
main: com.ryanmichela.sshd.SshdPlugin
|
main: com.ryanmichela.sshd.SshdPlugin
|
Loading…
Reference in New Issue
Block a user