aboutsummaryrefslogtreecommitdiff
path: root/lib/cli
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-07-03 16:13:54 +0200
committerAlex Auvolat <alex@adnab.me>2018-07-03 16:13:54 +0200
commit66ab427e7ada3e8d9710eb79b1f768a8431b42eb (patch)
treed5a70563113b3cb3a9c164c1bc2cf66229a80c2d /lib/cli
parent8f3009715ee9ccdd7ecb54fea1244a32a29b62c0 (diff)
downloadshard-66ab427e7ada3e8d9710eb79b1f768a8431b42eb.tar.gz
shard-66ab427e7ada3e8d9710eb79b1f768a8431b42eb.zip
Add connection manager (to be fully fledged peer database)
Diffstat (limited to 'lib/cli')
-rw-r--r--lib/cli/cli.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli/cli.ex b/lib/cli/cli.ex
index 4643351..28ef5d0 100644
--- a/lib/cli/cli.ex
+++ b/lib/cli/cli.ex
@@ -17,7 +17,7 @@ defmodule SCLI do
def handle_command(["connect", ipstr, portstr]) do
{:ok, ip} = :inet.parse_address (to_charlist ipstr)
{port, _} = Integer.parse portstr
- SNet.TCPServer.add_peer(ip, port)
+ SNet.Manager.add_peer(ip, port)
end
def handle_command(["nick", nick]) do