Download Latest Version v5.1.0 source code.tar.gz (451.6 kB)
Email in envelope

Get an email when there's a new version of Echo

Home / v5.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-03-31 2.3 kB
v5.1.0 source code.tar.gz 2026-03-31 451.6 kB
v5.1.0 source code.zip 2026-03-31 509.5 kB
Totals: 3 Items   963.4 kB 2

Security

This change does not break the API contract, but it does introduce breaking changes in logic/behavior. If your application is using c.RealIP() beware and read https://echo.labstack.com/docs/ip-address

In v5 the c.RealIP() will now return request.RemoteAddr unless e.IPExtractor has been configured. No potentially spoofable headers are used by default anymore.

Configure IPExtractor with proper trust options when you want to read IP from headers. See:

v4 behavior can be restored with:

:::go
e := echo.New()
e.IPExtractor = echo.LegacyIPExtractor()

Related PR: Remove legacy IP extraction logic from context.RealIP method by @aldas in https://github.com/labstack/echo/pull/2933

What's Changed

New Contributors

Full Changelog: https://github.com/labstack/echo/compare/v5.0.4...v5.1.0

Source: README.md, updated 2026-03-31