diff --git a/main.go b/main.go index acdb7f8..4a950df 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( "github.com/sipcapture/heplify/sniffer" ) -const version = "heplify 1.66.7" +const version = "heplify 1.66.8" func createFlags() { diff --git a/publish/hep.go b/publish/hep.go index cf2516c..69a63f7 100644 --- a/publish/hep.go +++ b/publish/hep.go @@ -72,6 +72,9 @@ func (h *HEPOutputer) ReConnect(n int) (err error) { } h.client[n].writer.Reset(h.client[n].conn) + //send ping packet on reconnect + h.ReSendPingPacket() + if config.Cfg.HEPBufferEnable { if _, err := h.copyHEPFileOut(n); err != nil { logp.Err("Sending HEP from file error: %v", err)