diff options
| author | Henri Vasserman <henv@hot.ee> | 2025-03-28 19:38:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-28 13:38:34 -0400 |
| commit | 57c3e9f1b2c1d685472670b8ba2660144d2ae316 (patch) | |
| tree | b3e31374ca5b41ce9e1e16ee2b13752cc1ac7018 /lib/anubis_test.go | |
| parent | e9a6ebffbb5cdd3d3f452610bda4371e51288058 (diff) | |
| download | anubis-57c3e9f1b2c1d685472670b8ba2660144d2ae316.tar.xz anubis-57c3e9f1b2c1d685472670b8ba2660144d2ae316.zip | |
Change how to make Anubis work without a reverse proxy (#86)
* Change how to make Anubis work without a reverse proxy
* Apply suggestions from code review
Co-authored-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Henri Vasserman <henv@hot.ee>
* add support for unix sockets.
* add env var docs
* lib: fix tests
Signed-off-by: Xe Iaso <me@xeiaso.net>
---------
Signed-off-by: Henri Vasserman <henv@hot.ee>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib/anubis_test.go')
| -rw-r--r-- | lib/anubis_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/anubis_test.go b/lib/anubis_test.go index 90d2cdf..58c8834 100644 --- a/lib/anubis_test.go +++ b/lib/anubis_test.go @@ -47,7 +47,7 @@ func TestCookieSettings(t *testing.T) { CookieName: t.Name(), }) - ts := httptest.NewServer(internal.DefaultXRealIP("127.0.0.1", srv)) + ts := httptest.NewServer(internal.RemoteXRealIP(true, "tcp", srv)) defer ts.Close() cli := &http.Client{ |
