From 027605e743972e2111f1bf6959526ac3bfca3f06 Mon Sep 17 00:00:00 2001 From: Ryan Michela Date: Sun, 17 Aug 2014 22:41:53 -0700 Subject: [PATCH] Renamed "host" to "listenAddress" --- pom.xml | 2 +- src/main/java/com/ryanmichela/sshd/SshdPlugin.java | 4 ++-- src/main/resources/config.yml | 5 +++-- src/main/resources/plugin.yml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index f3f63cc..94fcae1 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ryanmichela SSHD - 1.1.1 + 1.2 http://dev.bukkit.org/server-mods/sshd/ diff --git a/src/main/java/com/ryanmichela/sshd/SshdPlugin.java b/src/main/java/com/ryanmichela/sshd/SshdPlugin.java index 96288f7..90a3990 100644 --- a/src/main/java/com/ryanmichela/sshd/SshdPlugin.java +++ b/src/main/java/com/ryanmichela/sshd/SshdPlugin.java @@ -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"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 6c00aa5..300876f 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,5 +1,6 @@ -# The interface the SSH server will listen on. Leave blank for all interfaces. -host: +# The IP addresses(s) the SSH server will listen on. Use a comma separated list for multiple addresses. +# Leave as * for all addresses. +listenAddress: * # The port the SSH server will listen on. port: 22 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f036090..b6cc7f1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,4 +1,4 @@ name: SSHD -version: "1.1.1" +version: "1.2" author: Ryan Michela main: com.ryanmichela.sshd.SshdPlugin \ No newline at end of file