OSDN Git Service

fix the bug (#372)
[bytom/vapor.git] / p2p / node_info.go
index e602a0d..d0c52a9 100644 (file)
@@ -86,7 +86,7 @@ func (info NodeInfo) listenHost() string {
 }
 
 //remoteAddrHost peer external ip address
-func (info NodeInfo) remoteAddrHost() string {
+func (info NodeInfo) RemoteAddrHost() string {
        host, _, _ := net.SplitHostPort(info.RemoteAddr)
        return host
 }