Fix and improve network listener system integration and check

Also, improve logging.
This commit is contained in:
Daniel
2020-08-12 11:46:41 +02:00
parent edf46d33c4
commit 9d35ff3192
5 changed files with 82 additions and 33 deletions

View File

@@ -2,6 +2,7 @@ package state
import (
"context"
"strconv"
"sync"
"time"
@@ -155,5 +156,5 @@ func (table *udpTable) cleanStates(now time.Time) {
func makeUDPStateKey(address socket.Address) string {
// This could potentially go wrong, but as all IPs are created by the same source, everything should be fine.
return string(address.IP) + string(address.Port)
return string(address.IP) + strconv.Itoa(int(address.Port))
}