From 48b3ac2b4a82d384a4be766577a6f37075c356e2 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 3 Jun 2019 21:50:46 +0100 Subject: [PATCH] wip on update server --- .../src/main/groovy/com/muwire/update/UpdateServer.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-server/src/main/groovy/com/muwire/update/UpdateServer.groovy b/update-server/src/main/groovy/com/muwire/update/UpdateServer.groovy index 35f0b430..5b247c53 100644 --- a/update-server/src/main/groovy/com/muwire/update/UpdateServer.groovy +++ b/update-server/src/main/groovy/com/muwire/update/UpdateServer.groovy @@ -76,8 +76,11 @@ class UpdateServer { try { dissector.loadI2PDatagram(payload) def sender = dissector.getSender() + log.info("Got an update ping from "+sender.toBase32()) // I don't think we care about the payload at this point def maker = new I2PDatagramMaker(session) + def response = maker.makeI2PDatagram(json.bytes) + session.sendMessage(sender, response, I2PSession.PROTO_DATAGRAM, 0, 0) } catch (Exception e) { log.log(Level.WARNING, "exception responding to update request",e) }