diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-06-21 08:52:15 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-06-21 08:52:15 -0600 |
commit | 81a9e125b54b34d453c425dbd58a3270b9568dca (patch) | |
tree | e077fefe035375f810af3e0a255042e23532d7cd /modules/caddyhttp/templates/tplcontext_test.go | |
parent | 70c788ce0c7f81f87d19850164031ce2e8158e72 (diff) |
Oops
Diffstat (limited to 'modules/caddyhttp/templates/tplcontext_test.go')
-rw-r--r-- | modules/caddyhttp/templates/tplcontext_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/templates/tplcontext_test.go b/modules/caddyhttp/templates/tplcontext_test.go index efe5374..88adb5b 100644 --- a/modules/caddyhttp/templates/tplcontext_test.go +++ b/modules/caddyhttp/templates/tplcontext_test.go @@ -122,7 +122,7 @@ func TestIP(t *testing.T) { {`[fe80:1::3%eth0]:44`, `fe80:1::3%eth0`}, } { context.Req.RemoteAddr = test.inputRemoteAddr - if actual := context.IP(); actual != test.expect { + if actual := context.RemoteIP(); actual != test.expect { t.Errorf("Test %d: Expected %s but got %s", i, test.expect, actual) } } |