feat(auth)!: подтверждение Client ID с повтором по таймеру

This commit is contained in:
samosvalishe committed 2026-09-22 00:07:29 +03:00
1 parent caa8fea5bf
commit d3e4cfc1db
5 files changed
+245 -90

No files matched your search

+1 -1
View File
@@ -394,7 +394,7 @@ func createSession(ctx context.Context, deps *Deps, params *Params, peer *net.UD
closers = append(closers, func() { _ = dtlsConn.Close() })
// Wire-контракт: Client ID первой app-record, до KCP.
if err = clientsdb.WriteClientID(dtlsConn, params.ClientID, clientsdb.ModeTCP); err != nil {
if err = clientsdb.WriteClientID(ctx, dtlsConn, params.ClientID, clientsdb.ModeTCP); err != nil {
cleanup()
return nil, fmt.Errorf("send client ID: %w", err)
}