mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-23 22:10:08 +08:00
- Added logic for generating device keys based on the Client-Id, prioritizing those obtained from the request header. - If the Client-Id is missing, attempts to obtain it from the cookie. If that still doesn't exist, generates a random suffix for the client IP address as an identifier. - Stores the generated Client-Id in a cookie to ensure consistency across subsequent requests. - Use the device.EnsureActiveOnLogin method instead of the original Handle method to reactivate inactive sessions. |
||
|---|---|---|
| .. | ||
| common | ||
| ftp | ||
| handles | ||
| middlewares | ||
| s3 | ||
| sftp | ||
| static | ||
| webdav | ||
| debug.go | ||
| ftp.go | ||
| router.go | ||
| s3.go | ||
| sftp.go | ||
| webdav.go | ||