From 40414f9295dd301f1c714bc3067392b7cc8f8427 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Tue, 7 Jun 2022 16:00:29 -0700 Subject: Fix hardcoded port in tracker registration --- hotline/tracker_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/tracker_test.go') diff --git a/hotline/tracker_test.go b/hotline/tracker_test.go index b904462..72d84ba 100644 --- a/hotline/tracker_test.go +++ b/hotline/tracker_test.go @@ -7,7 +7,7 @@ import ( func TestTrackerRegistration_Payload(t *testing.T) { type fields struct { - Port []byte + Port [2]byte UserCount int PassID []byte Name string @@ -21,7 +21,7 @@ func TestTrackerRegistration_Payload(t *testing.T) { { name: "returns expected payload bytes", fields: fields{ - Port: []byte{0x00, 0x10}, + Port: [2]byte{0x00, 0x10}, UserCount: 2, PassID: []byte{0x00, 0x00, 0x00, 0x01}, Name: "Test Serv", -- cgit