From 450cf1e6511cd9bd23a1cc03097d42dd7ff7c725 Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Thu, 17 Aug 2023 10:21:51 +0200 Subject: [PATCH] changed default tcpretries --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 55978d0..07db1de 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "github.com/sipcapture/heplify/sniffer" ) -const version = "heplify 1.65.8" +const version = "heplify 1.65.9" func createFlags() { @@ -75,7 +75,7 @@ func createFlags() { flag.StringVar(&config.Cfg.Network, "nt", "udp", "Network types are [udp, tcp, tls]") flag.BoolVar(&config.Cfg.Protobuf, "protobuf", false, "Use Protobuf on wire") flag.BoolVar(&config.Cfg.Reassembly, "tcpassembly", false, "If true, tcpassembly will be enabled") - flag.UintVar(&config.Cfg.SendRetries, "tcpsendretries", 64, "Number of retries for sending before giving up and reconnecting") + flag.UintVar(&config.Cfg.SendRetries, "tcpsendretries", 0, "Number of retries for sending before giving up and reconnecting") flag.BoolVar(&config.Cfg.Version, "version", false, "Show heplify version") flag.BoolVar(&config.Cfg.SkipVerify, "skipverify", false, "skip certifcate validation") flag.Parse()