From 7ebbb79e051c6c8227250669e3989cbf45c2511e Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 1 Apr 2024 14:36:29 +1100 Subject: [PATCH] Try starting connection ID at 1 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2a30a95..d0555be 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,7 @@ func main() { log.Printf("EtherTalk configuration: %+v", cfg.EtherTalk) peers := make(map[udpAddr]*peer) - var nextConnID uint16 + nextConnID := uint16(1) ln, err := net.ListenUDP("udp4", &net.UDPAddr{Port: int(cfg.ListenPort)}) if err != nil {