Skip to content

Commit

Permalink
Fix multi-user udp
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jun 4, 2022
1 parent a898f41 commit 76bf0fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shadowaead_2022/service_multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ func (s *MultiService[U]) newPacket(ctx context.Context, conn N.PacketConn, buff
return err
}

buffer.Advance(aes.BlockSize)

session, loaded := s.udpSessions.LoadOrStore(sessionId, func() *serverUDPSession {
return s.newUDPSession(uPSK)
})
Expand Down

0 comments on commit 76bf0fe

Please # to comment.