mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update node/node.go
This commit is contained in:
parent
2aefb28b36
commit
f033c8d3ed
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ func (n *Node) startHTTP(endpoint string, apis []rpc.API, modules []string, cors
|
||||||
// stopHTTP terminates the HTTP RPC endpoint.
|
// stopHTTP terminates the HTTP RPC endpoint.
|
||||||
func (n *Node) stopHTTP() {
|
func (n *Node) stopHTTP() {
|
||||||
if n.httpListener != nil {
|
if n.httpListener != nil {
|
||||||
url := fmt.Sprintf("http://%v", n.httpListener.Addr())
|
url := fmt.Sprintf("http://%v/", n.httpListener.Addr())
|
||||||
n.httpListener.Close()
|
n.httpListener.Close()
|
||||||
n.httpListener = nil
|
n.httpListener = nil
|
||||||
n.log.Info("HTTP endpoint closed", "url", url)
|
n.log.Info("HTTP endpoint closed", "url", url)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue