diff --git a/UI/js/control.js b/UI/js/control.js
index 65c28ca..3e8714a 100644
--- a/UI/js/control.js
+++ b/UI/js/control.js
@@ -98,8 +98,9 @@ KadOHui.Control.prototype = {
.button('toggle');
that.pingResult.empty();
var address = that.pingAddress.val();
- var peer = new (require('/dht/bootstrap-peer'))(address);
- var ping = that.node._reactor.PING(peer);
+ var peer = new (require('/lib/dht/bootstrap-peer'))(address);
+ var ping = new (require('/lib/network/rpc/ping'))(peer);
+
ping.then(function() {
that.pingResult.html(''+
''+ping.getQueried().getID()+'
');
@@ -109,6 +110,8 @@ KadOHui.Control.prototype = {
that.pingBtn.click(onPing)
.button('toggle');
});
+
+ that.node._reactor.sendRPC(ping)
};
this.pingBtn.click(onPing);
return this;