Skip to content

Commit

Permalink
don't convert URL to lower ascii, fixes #3756 (#3757)
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran authored Jun 16, 2022
1 parent 9da9fc8 commit 13f5248
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions beacon_chain/eth1/eth1_monitor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,8 @@ proc fixupWeb3Urls*(web3Url: var string) =
normalizedUrl.startsWith("http://") or
normalizedUrl.startsWith("wss://") or
normalizedUrl.startsWith("ws://")):
normalizedUrl = "ws://" & normalizedUrl
warn "The Web3 URL does not specify a protocol. Assuming a WebSocket server", web3Url

# We do this at the end in order to allow the warning above to print the original value
web3Url = normalizedUrl
web3Url = "ws://" & web3Url

template toGaugeValue(x: Quantity): int64 =
toGaugeValue(distinctBase x)
Expand Down

0 comments on commit 13f5248

Please sign in to comment.