mirror of
https://github.com/PeernetOfficial/Cmd.git
synced 2026-07-20 04:17:50 +01:00
Update core. Support for GeoIP database.
This commit is contained in:
2
API.go
2
API.go
@@ -39,6 +39,8 @@ func startAPI(backend *core.Backend, apiListen []string, apiKey uuid.UUID) {
|
||||
return
|
||||
}
|
||||
|
||||
api.InitGeoIPDatabase(config.GeoIPDatabase)
|
||||
|
||||
api.AllowKeyInParam = append(api.AllowKeyInParam, "/console")
|
||||
api.Router.HandleFunc("/console", apiConsole).Methods("GET")
|
||||
api.Router.HandleFunc("/shutdown", apiShutdown).Methods("GET")
|
||||
|
||||
Reference in New Issue
Block a user