From ea55407c6bf0240ae5afd00b57baa3f8316bdcee Mon Sep 17 00:00:00 2001 From: Imre 'Rover' Racz Date: Sun, 5 May 2019 21:51:45 +0200 Subject: [PATCH] fix(storage): Port is now also in the directory name --- core/streaming/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/streaming/processor.go b/core/streaming/processor.go index 1c47120..f867074 100644 --- a/core/streaming/processor.go +++ b/core/streaming/processor.go @@ -180,7 +180,7 @@ func GetURIDirectory(URI string) (string, error) { if err = ValidateURL(URL); err != nil { return "", err } - return sanitize.BaseName(fmt.Sprintf("%s-%s", URL.Hostname(), sanitize.Path(URL.Path))), nil + return sanitize.BaseName(fmt.Sprintf("%s-%s-%s", URL.Hostname(), URL.Port(), sanitize.Path(URL.Path))), nil } // createDirectoryForURI is to create a safe path based on the received URI