mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
Co-authored-by: Marcus Baldassarre <baldassarremarcus@gmail.com>
This commit is contained in:
parent
c0747977e2
commit
fd42d8b292
1 changed files with 4 additions and 0 deletions
|
|
@ -122,6 +122,10 @@ func (e wsHandshakeError) Error() string {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e wsHandshakeError) Unwrap() error {
|
||||||
|
return e.err
|
||||||
|
}
|
||||||
|
|
||||||
func originIsAllowed(allowedOrigins mapset.Set[string], browserOrigin string) bool {
|
func originIsAllowed(allowedOrigins mapset.Set[string], browserOrigin string) bool {
|
||||||
it := allowedOrigins.Iterator()
|
it := allowedOrigins.Iterator()
|
||||||
for origin := range it.C {
|
for origin := range it.C {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue