Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2023/11/09 11:05:05 INFO : /static/ContentDirectory.xml: 192.168.131.174:52716 GET 200
panic: invalid argument to Int63n
goroutine 1933 [running]:
math/rand.(*Rand).Int63n(0x140000008c0?, 0x14000046e70?)
/opt/homebrew/Cellar/go/1.20.6/libexec/src/math/rand/rand.go:121 +0xe8
math/rand.Int63n(...)
/opt/homebrew/Cellar/go/1.20.6/libexec/src/math/rand/rand.go:348
github.com/anacrolix/dms/ssdp.(*Server).handle(0x140000008c0, {0x14000706c00, 0x65, 0x5dc}, 0x1400057cfc0?)
/go/pkg/mod/github.com/anacrolix/[email protected]/ssdp/ssdp.go:319 +0x874
created by github.com/anacrolix/dms/ssdp.(*Server).serve
/go/pkg/mod/github.com/anacrolix/[email protected]/ssdp/ssdp.go:129 +0x2c