Try starting connection ID at 1
This commit is contained in:
parent
d534883815
commit
7ebbb79e05
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -74,7 +74,7 @@ func main() {
|
||||||
log.Printf("EtherTalk configuration: %+v", cfg.EtherTalk)
|
log.Printf("EtherTalk configuration: %+v", cfg.EtherTalk)
|
||||||
|
|
||||||
peers := make(map[udpAddr]*peer)
|
peers := make(map[udpAddr]*peer)
|
||||||
var nextConnID uint16
|
nextConnID := uint16(1)
|
||||||
|
|
||||||
ln, err := net.ListenUDP("udp4", &net.UDPAddr{Port: int(cfg.ListenPort)})
|
ln, err := net.ListenUDP("udp4", &net.UDPAddr{Port: int(cfg.ListenPort)})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue