diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-07-29 19:36:17 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-07-29 13:36:17 -0700 |
| commit | d80b37ca4c5801d5dbb5c4313a3d1d5fbdf2d593 (patch) | |
| tree | 4112f3b2c14f697d3b1abb3f57793f3f10c3c6d0 /hotline | |
| parent | d301539be4577e7070bcc35509b35681d6282bd4 (diff) | |
Fix tracker bug in multiple read case
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/tracker.go | 1 | ||||
| -rw-r--r-- | hotline/ui.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/hotline/tracker.go b/hotline/tracker.go index d42ff7b..69d9fd4 100644 --- a/hotline/tracker.go +++ b/hotline/tracker.go @@ -124,6 +124,7 @@ func GetListing(addr string) ([]ServerRecord, error) { payloadSize := int(binary.BigEndian.Uint16(info.MsgDataSize[:])) + buf = buf[:readLen] if totalRead < payloadSize { for { tmpBuf := make([]byte, 4096) diff --git a/hotline/ui.go b/hotline/ui.go new file mode 100644 index 0000000..e5acf82 --- /dev/null +++ b/hotline/ui.go @@ -0,0 +1 @@ +package hotline |