X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/d9bc63a10d0978d9a5222cf7be74044e55f409b7..318eb6bc17ee406e26c1cfe0835409fd446bad75:/hotline/tracker.go?ds=inline diff --git a/hotline/tracker.go b/hotline/tracker.go index 2d655d9..a3e077e 100644 --- a/hotline/tracker.go +++ b/hotline/tracker.go @@ -18,6 +18,7 @@ type TrackerRegistration struct { PassID [4]byte // Random number generated by the server Name string // Server Name Description string // Description of the server + Password string // Tracker password, if required by tracker readOffset int // Internal offset to track read progress } @@ -37,6 +38,8 @@ func (tr *TrackerRegistration) Read(p []byte) (int, error) { []byte(tr.Name), []byte{uint8(len(tr.Description))}, []byte(tr.Description), + []byte{uint8(len(tr.Password))}, + []byte(tr.Password), ) if tr.readOffset >= len(buf) {