From 972dce1ec58c3f2f1dff4a66be2b97ffc8eeffa1 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 29 Apr 2019 19:20:03 -0700 Subject: [PATCH] don't hardcode address --- src/tcp/tcp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index e95d777..404a03e 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -222,8 +222,9 @@ func pipe(conn1 net.Conn, conn2 net.Conn) { } } } + func ConnectToTCPServer(address, room string) (c *comm.Comm, err error) { - c, err = comm.NewConnection("localhost:8081") + c, err = comm.NewConnection(address) if err != nil { return }