We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5011c66 commit c8545bbCopy full SHA for c8545bb
main.go
@@ -15,7 +15,7 @@ import (
15
"github.com/sipcapture/heplify/sniffer"
16
)
17
18
-const version = "heplify 1.66.3"
+const version = "heplify 1.66.4"
19
20
func createFlags() {
21
publish/hep.go
@@ -7,6 +7,7 @@ import (
7
"net"
8
"os"
9
"runtime/debug"
10
+ "strconv"
11
"strings"
12
"time"
13
"unicode"
@@ -149,6 +150,12 @@ func (h *HEPOutputer) ReSendPingPacket() {
149
150
151
func (h *HEPOutputer) Send(msg []byte) {
152
for n := range h.addr {
153
+
154
+ if h.client[n].conn == nil || h.client[n].writer == nil {
155
+ logp.Debug("connection is not up, index: ", strconv.Itoa(n))
156
+ continue
157
+ }
158
159
h.client[n].writer.Write(msg)
160
err := h.client[n].writer.Flush()
161
if err != nil {
0 commit comments