diff options
author | Benoit Verkindt <benoit.verkindt@gmail.com> | 2017-11-10 17:22:06 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-11-10 17:22:06 +0800 |
commit | 3ee86a57f328530707974288e9db87b7c05283f9 (patch) | |
tree | 7b387ad632b504935dd874e3a2e23b9bdaeb16f0 /rpc | |
parent | b31cc71ff6415a02864482980d08f5998cd5e086 (diff) | |
download | go-tangerine-3ee86a57f328530707974288e9db87b7c05283f9.tar.gz go-tangerine-3ee86a57f328530707974288e9db87b7c05283f9.tar.zst go-tangerine-3ee86a57f328530707974288e9db87b7c05283f9.zip |
rpc: warn on WebSocket origin mismatch (#15451)
Fixes #15373
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 5f9593a43..4214fc86a 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -83,7 +83,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http if allowAllOrigins || origins.Has(origin) { return nil } - log.Debug(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin)) + log.Warn(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin)) return fmt.Errorf("origin %s not allowed", origin) } |