Compare commits

..

1 Commits

Author SHA1 Message Date
Pterodactyl CI
3879ccb4c7 bump version for release 2023-01-27 19:16:59 +00:00
4 changed files with 3 additions and 7 deletions

View File

@@ -1,10 +1,5 @@
# Changelog # 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 ## v1.11.1
### Changed ### Changed
* Release binaries are now built with Go 1.18.10 * Release binaries are now built with Go 1.18.10

View File

@@ -49,7 +49,7 @@ func (ac *activityCron) Run(ctx context.Context) error {
for _, v := range activity { for _, v := range activity {
// Delete any activity that has an invalid IP address. This is a fix for // 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. // a bug that truncated the last octet of an IPv6 address in the database.
if ip := net.ParseIP(v.IP); ip == nil { if err := net.ParseIP(v.IP); err != nil {
ids = append(ids, v.ID) ids = append(ids, v.ID)
continue continue
} }

View File

@@ -147,6 +147,7 @@ func postServerRestoreBackup(c *gin.Context) {
middleware.CaptureAndAbort(c, err) middleware.CaptureAndAbort(c, err)
return return
} }
defer res.Body.Close()
// Don't allow content types that we know are going to give us problems. // 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")) { if res.Header.Get("Content-Type") == "" || !strings.Contains("application/x-gzip application/gzip", res.Header.Get("Content-Type")) {
_ = res.Body.Close() _ = res.Body.Close()

View File

@@ -1,3 +1,3 @@
package system package system
var Version = "1.11.2" var Version = "1.11.1"