From ca5d5668d9687ea57d880bcda259a156443c5180 Mon Sep 17 00:00:00 2001 From: Ray Cheung Date: Sat, 29 May 2021 11:42:44 +0800 Subject: [PATCH] Fix storyboard when proxied with an external port Say if it's `http://host:port` internally and proxied to `https://domain:external_port`, the storyboard URL was rendered as `https://domain:port`. --- src/invidious/helpers/utils.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index 10d4e6b6..6ce457b9 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -298,7 +298,7 @@ def make_host_url(kemal_config) # Add if non-standard port if port != 80 && port != 443 - port = ":#{kemal_config.port}" + port = ":#{port}" else port = "" end