mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-29 17:10:00 -07:00
config.yaml: camelCase to snake_case
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
tracker.RegisterAnnounceMiddleware("IPBlacklist", blacklistAnnounceIP)
|
||||
tracker.RegisterAnnounceMiddleware("ip_blacklist", blacklistAnnounceIP)
|
||||
}
|
||||
|
||||
// ErrBlockedIP is returned by an announce middleware if any of the announcing
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
tracker.RegisterAnnounceMiddleware("IPWhitelist", whitelistAnnounceIP)
|
||||
tracker.RegisterAnnounceMiddleware("ip_whitelist", whitelistAnnounceIP)
|
||||
}
|
||||
|
||||
// whitelistAnnounceIP provides a middleware that only allows IPs to announce
|
||||
|
||||
Reference in New Issue
Block a user