From 298d08dbf8b74a32f7bb74e25cc5bf729c35a6da Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Sun, 7 Jun 2020 21:27:09 +0000 Subject: fix minor typo --- plugin/evm/vm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin/evm') diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index 57b2eda..929725d 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -334,11 +334,12 @@ type ipFilter struct { } func (ipf ipFilter) ServeHTTP(writer http.ResponseWriter, request *http.Request) { - if ips, _, err := net.SplitHostPort(request.RemoteAddr); err != nil && ips == "127.0.0.1" { + if ips, _, err := net.SplitHostPort(request.RemoteAddr); err == nil && ips == "127.0.0.1" { ipf.handler.ServeHTTP(writer, request) return } writer.WriteHeader(404) + writer.Write([]byte("404 page not found")) } func newIPFilter(handler http.Handler) http.Handler { -- cgit v1.2.3-70-g09d2