From 354df6d333ffb7b69e92117406c8ce8d61ea09e0 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 24 Jul 2022 21:42:55 -0300 Subject: Prepare for improved SAM auth and World Codes --- src/main/java/ganarchy/friendcode/client/I2PSamPinger.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/ganarchy/friendcode/client/I2PSamPinger.java') diff --git a/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java b/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java index 0476c61..e0824b9 100644 --- a/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java +++ b/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java @@ -14,11 +14,11 @@ public class I2PSamPinger extends LanServerPinger implements LanSendPing { private volatile Status status = Status.IDLE; private volatile boolean stopSam; - public I2PSamPinger(String motd, String port) throws IOException { + public I2PSamPinger(String motd, String port, String privateKey) throws IOException { super(motd, port); // cba to mixin this.port = port; - this.sam = new I2PSamControl(true); + this.sam = new I2PSamControl(true, privateKey); } @Override @@ -96,7 +96,7 @@ public class I2PSamPinger extends LanServerPinger implements LanSendPing { } public String pubkey() { - return this.sam.pubkey(); + return this.sam.publicKey(); } public void stopSam() { -- cgit 1.4.1