Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions server-packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ func (s *PacketServer) Serve(conn net.PacketConn) error {
s.mu.Unlock()

type requestKey struct {
IP string
Identifier byte
IP string
Identifier byte
Authenticator [16]byte
}

var (
Expand Down Expand Up @@ -151,8 +152,9 @@ func (s *PacketServer) Serve(conn net.PacketConn) error {
}

key := requestKey{
IP: remoteAddr.String(),
Identifier: packet.Identifier,
IP: remoteAddr.String(),
Identifier: packet.Identifier,
Authenticator: packet.Authenticator,
}
requestsLock.Lock()
if _, ok := requests[key]; ok {
Expand Down