mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
signer/core: uncoditionally overwrites scheme
This commit is contained in:
parent
bcb0efd756
commit
389ec894af
1 changed files with 2 additions and 1 deletions
|
|
@ -196,9 +196,10 @@ func MetadataFromContext(ctx context.Context) Metadata {
|
||||||
if info.Transport != "" {
|
if info.Transport != "" {
|
||||||
if info.Transport == "http" {
|
if info.Transport == "http" {
|
||||||
m.Scheme = info.HTTP.Version
|
m.Scheme = info.HTTP.Version
|
||||||
}
|
} else {
|
||||||
m.Scheme = info.Transport
|
m.Scheme = info.Transport
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if info.RemoteAddr != "" {
|
if info.RemoteAddr != "" {
|
||||||
m.Remote = info.RemoteAddr
|
m.Remote = info.RemoteAddr
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue