mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-26 17:54:45 -07:00
(partially tested) simplify client approval m/w
* sanitize code
This commit is contained in:
@@ -65,7 +65,7 @@ func build(config conf.MapConfig, st storage.PeerStorage) (h middleware.Hook, er
|
||||
}
|
||||
|
||||
// ErrTorrentUnapproved is the error returned when a torrent hash is invalid.
|
||||
var ErrTorrentUnapproved = bittorrent.ClientError("unapproved torrent")
|
||||
var ErrTorrentUnapproved = bittorrent.ClientError("torrent not allowed by mochi")
|
||||
|
||||
type hook struct {
|
||||
hashContainer container.Container
|
||||
|
||||
Reference in New Issue
Block a user