remove unnecessary debugs
Docker / build (push) Has been cancelled Details

This commit is contained in:
Chris W 2024-01-07 16:56:55 -07:00
parent 44b750dc1b
commit f863cc34d9
2 changed files with 1 additions and 6 deletions

View File

@ -124,9 +124,7 @@ module Paste69
content_type = req.headers["Content-Type"]?
user_agent = req.headers["User-Agent"]?
remote_addr = req.headers["Remote-Addr"]?
pp req
remote_addr = req.headers["Remote-Addr"]? || req.headers["X-Forwarded-For"]?
if !remote_addr
addr = req.request.remote_address

View File

@ -183,13 +183,10 @@ module Paste69
# Maximum lifetime of the file in milliseconds
files_max_lifespan = max_lifespan(size)
pp! files_max_lifespan
# The latest allowed expiration date for this file, in epoch millis
files_max_expiration = files_max_lifespan + current_epoch_millis
pp! files_max_expiration
if requested_expiration.nil?
files_max_expiration
elsif requested_expiration < 1_650_460_320_000