diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2019-02-19 18:58:32 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-19 18:58:32 +0800 |
commit | d2256244c4f6dbb7312fa280b5523c544d8c10af (patch) | |
tree | 7933b9f9b2483465c3ba9d4491996ad08612c8d9 /rpc | |
parent | 26d3a8ca80bf78946eca7ccdc5945c2ffc6ce8fb (diff) | |
download | go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.gz go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.bz2 go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.lz go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.xz go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.zst go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.zip |
rpc: fixup change to not verify websocket origin (#19128)
This corrects the previous change which broke the build and
was pushed by accident.
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/websocket.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/websocket.go b/rpc/websocket.go index 6b986a914..c5383667d 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -129,7 +129,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http // Origin. Non-browser software can put anything in origin and checking it doesn't // provide additional security. if _, ok := req.Header["Origin"]; !ok { - return + return nil } // Verify origin against whitelist. origin := strings.ToLower(req.Header.Get("Origin")) |