aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTyler Smith <[email protected]>2020-07-29 14:44:40 -0700
committerTyler Smith <[email protected]>2020-07-29 14:44:40 -0700
commit171d58d09fe67f89fb6ba9e32133427fa9794a39 (patch)
treefcde30b994b8f1d3ab8c3e9d7a4a639b3253a97f /plugin
parentcffa0954bbdb43821d1b71d00f99fb705cecd25b (diff)
TWEAK: Don't use IP filter.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/evm/vm.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index c710b9d..d6a7415 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -386,8 +386,8 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler {
handler.RegisterName("admin", &admin.Performance{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: newIPFilter(handler)},
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: newIPFilter(handler.WebsocketHandler([]string{"*"}))},
+ "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
+ "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}
@@ -396,8 +396,8 @@ func (vm *VM) CreateStaticHandlers() map[string]*commonEng.HTTPHandler {
handler := rpc.NewServer()
handler.RegisterName("static", &StaticService{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: newIPFilter(handler)},
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: newIPFilter(handler.WebsocketHandler([]string{"*"}))},
+ "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
+ "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}