From c946014e7c1d97f93667e3c87363204348ccca64 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 4 Nov 2020 17:28:45 +0100 Subject: [PATCH] fix skylink not accessible --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 7ea0c288..54e28e64 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -153,7 +153,7 @@ server { if hnsres_json.skylink then -- try to match the skylink with sia:// prefix - local skylink, skylink_rest = string.match(hnsres_json.skylink, "sia://([^/?]+)(.*)") + skylink, skylink_rest = string.match(hnsres_json.skylink, "sia://([^/?]+)(.*)") -- in case the skylink did not match, assume that there is no sia:// prefix and try to match again if skylink == nil then