Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
774c0af0b0 | ||
|
|
71fbd9271e | ||
|
|
2d640209e5 |
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## v1.11.2
|
||||
### Fixed
|
||||
* Backups being restored from remote storage (s3) erroring out due to a closed stream.
|
||||
* Fix IP validation logic for activity logs filtering out valid IPs instead of invalid IPs
|
||||
|
||||
## v1.11.1
|
||||
### Changed
|
||||
* Release binaries are now built with Go 1.18.10
|
||||
|
||||
@@ -49,7 +49,7 @@ func (ac *activityCron) Run(ctx context.Context) error {
|
||||
for _, v := range activity {
|
||||
// Delete any activity that has an invalid IP address. This is a fix for
|
||||
// a bug that truncated the last octet of an IPv6 address in the database.
|
||||
if err := net.ParseIP(v.IP); err != nil {
|
||||
if ip := net.ParseIP(v.IP); ip == nil {
|
||||
ids = append(ids, v.ID)
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -147,7 +147,6 @@ func postServerRestoreBackup(c *gin.Context) {
|
||||
middleware.CaptureAndAbort(c, err)
|
||||
return
|
||||
}
|
||||
defer res.Body.Close()
|
||||
// Don't allow content types that we know are going to give us problems.
|
||||
if res.Header.Get("Content-Type") == "" || !strings.Contains("application/x-gzip application/gzip", res.Header.Get("Content-Type")) {
|
||||
_ = res.Body.Close()
|
||||
|
||||
Reference in New Issue
Block a user