mirror of
https://github.com/alexgo-io/gaze-brc20-indexer.git
synced 2026-01-12 22:22:19 +08:00
feat: move requestip config to http config (#25)
This commit is contained in:
committed by
GitHub
parent
a7bc6257c4
commit
51fd1f6636
@@ -145,7 +145,7 @@ func runHandler(cmd *cobra.Command, _ []string) error {
|
||||
Use(requestid.New()).
|
||||
Use(requestcontext.New(
|
||||
requestcontext.WithRequestId(),
|
||||
requestcontext.WithClientIP(conf.RequestIP),
|
||||
requestcontext.WithClientIP(conf.HTTPServer.RequestIP),
|
||||
)).
|
||||
Use(requestlogger.New(conf.HTTPServer.Logger)).
|
||||
Use(fiberrecover.New(fiberrecover.Config{
|
||||
|
||||
Reference in New Issue
Block a user