]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/tracker.go
Add config option to specify ignored filename patterns
[rbdr/mobius] / hotline / tracker.go
index 2fc6004bb3b09410ad984163c3a01bedda62ccbb..63fb279bf29dc53a89c63a7c5e22d2958d613ce3 100644 (file)
@@ -12,11 +12,11 @@ import (
 )
 
 type TrackerRegistration struct {
 )
 
 type TrackerRegistration struct {
-       Port        []byte // Server listening port number
-       UserCount   int    // Number of users connected to this particular server
-       PassID      []byte // Random number generated by the server
-       Name        string // Server name
-       Description string // Description of the server
+       Port        [2]byte // Server listening port number
+       UserCount   int     // Number of users connected to this particular server
+       PassID      []byte  // Random number generated by the server
+       Name        string  // Server name
+       Description string  // Description of the server
 }
 
 func (tr *TrackerRegistration) Payload() []byte {
 }
 
 func (tr *TrackerRegistration) Payload() []byte {
@@ -25,7 +25,7 @@ func (tr *TrackerRegistration) Payload() []byte {
 
        return concat.Slices(
                []byte{0x00, 0x01},
 
        return concat.Slices(
                []byte{0x00, 0x01},
-               tr.Port,
+               tr.Port[:],
                userCount,
                []byte{0x00, 0x00},
                tr.PassID,
                userCount,
                []byte{0x00, 0x00},
                tr.PassID,