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