aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/net.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-08-07 15:56:49 +0800
committerBas van Kervel <bas@ethdev.com>2015-08-12 18:22:16 +0800
commitf9cbd16f27e393d4937354ee31435e0a2f689484 (patch)
tree0b9668443084923b2b264cd0fb1b1b8c604cf1d6 /rpc/api/net.go
parent2fcf7f1241648dc2c0ed90a122c5945f25b3ce1a (diff)
downloaddexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.gz
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.zst
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.zip
support for user agents
Diffstat (limited to 'rpc/api/net.go')
-rw-r--r--rpc/api/net.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc/api/net.go b/rpc/api/net.go
index 39c230e14..9c6369615 100644
--- a/rpc/api/net.go
+++ b/rpc/api/net.go
@@ -32,7 +32,7 @@ var (
netMapping = map[string]nethandler{
"net_peerCount": (*netApi).PeerCount,
"net_listening": (*netApi).IsListening,
- "net_version": (*netApi).Version,
+ "net_version": (*netApi).Version,
}
)
@@ -97,4 +97,3 @@ func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {
func (self *netApi) Version(req *shared.Request) (interface{}, error) {
return self.xeth.NetworkVersion(), nil
}
-