Added specific interface binding

This commit is contained in:
Ryan Michela
2014-08-03 13:20:00 -07:00
parent f9a3ddec43
commit be9c53bf6f
4 changed files with 8 additions and 4 deletions

View File

@@ -35,6 +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);
File hostKey = new File(getDataFolder(), "hostkey");
File authorizedKeys = new File(getDataFolder(), "authorized_keys");