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