From 231c1c5605b4bb8c017fad9e79defd0a026badde Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Jun 2020 16:44:40 +0200 Subject: [PATCH] test --- main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0048e6a..2ce5a35 100644 --- a/main.go +++ b/main.go @@ -8,8 +8,19 @@ import ( func main() { conn, err := net.Dial("tcp", "poop.siteop.biz:3977") failError(err, "net.Dial") - logInfoDebug("Connected to poop.siteop.biz:3977") + + //send auth + p := PacketAdminJoin{ + PType: AdminPacketAdminJoin, + Password: "plop", + AppName: "gottdad", + AppVersion: "alpha", + } + _, err = conn.Write(p.Bytes()) + failError(err, "conn.Write") + logInfoDebug("Authentication sent") + // listen for reply message, _ := bufio.NewReader(conn).ReadString('\n') logInfoDebug("Message from server: %s", message)