mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Update api.go
This commit is contained in:
parent
f2869793df
commit
0be75de089
1 changed files with 0 additions and 3 deletions
|
|
@ -194,9 +194,6 @@ func MetadataFromContext(ctx context.Context) Metadata {
|
||||||
m := Metadata{"NA", "NA", "NA", "", ""} // batman
|
m := Metadata{"NA", "NA", "NA", "", ""} // batman
|
||||||
|
|
||||||
if info.Transport != "" {
|
if info.Transport != "" {
|
||||||
if info.Transport == "http" {
|
|
||||||
m.Scheme = info.HTTP.Version
|
|
||||||
}
|
|
||||||
m.Scheme = info.Transport
|
m.Scheme = info.Transport
|
||||||
}
|
}
|
||||||
if info.RemoteAddr != "" {
|
if info.RemoteAddr != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue