From 956f0cc3ef4e8d600ab337e20c4713e87941c52b Mon Sep 17 00:00:00 2001 From: Ryan Michela Date: Thu, 4 Sep 2014 23:01:47 -0700 Subject: [PATCH] Changed * to all --- src/main/java/com/ryanmichela/sshd/SshdPlugin.java | 4 ++-- src/main/resources/config.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ryanmichela/sshd/SshdPlugin.java b/src/main/java/com/ryanmichela/sshd/SshdPlugin.java index 90a3990..0fa10eb 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("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"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 300876f..bd09d50 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -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