diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index c17e225165..4082e6b516 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -388,7 +388,7 @@ func (s *Service) readLoop(conn *connWrapper) { // If the network packet is a system ping, respond to it directly var ping string if err := json.Unmarshal(blob, &ping); err == nil && strings.HasPrefix(ping, "primus::ping::") { - if err := conn.WriteJSON(strings.ReplaceAll(ping, "ping", "pong")); err != nil { + if err := conn.WriteJSON(strings.Replace(ping, "primus::ping::", "primus::pong::", 1)); err != nil { log.Warn("Failed to respond to system ping message", "err", err) return }