summary refs log tree commit diff stats
path: root/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ganarchy/friendcode/client/I2PSamPinger.java')
-rw-r--r--src/main/java/ganarchy/friendcode/client/I2PSamPinger.java6
1 files changed, 3 insertions, 3 deletions
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() {