Skip to content

Commit

Permalink
IPExtractorをconfigに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
cateiru committed Feb 18, 2024
1 parent 148ff52 commit fd6d807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func Main(mode string, path string) {
// サーバを実行する
func Server(c *Config, path string) error {
e := echo.New()
e.IPExtractor = echo.ExtractIPFromXFFHeader()
e.IPExtractor = c.IPExtractor
e.HTTPErrorHandler = CustomHTTPErrorHandler

ServerMiddleWare(e, c)
Expand Down

0 comments on commit fd6d807

Please sign in to comment.