mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
respect go.mod replace
This commit is contained in:
@@ -17,7 +17,11 @@ func GetTorrentVersion() string {
|
||||
}
|
||||
for _, dep := range bi.Deps {
|
||||
if dep.Path == "github.com/anacrolix/torrent" {
|
||||
return dep.Version
|
||||
if dep.Replace != nil {
|
||||
return dep.Replace.Version
|
||||
} else {
|
||||
return dep.Version
|
||||
}
|
||||
}
|
||||
}
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user