From 41cc0cb790affc42ad5581e1800a03629033fca9 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 6 Jan 2024 19:58:18 +0100 Subject: [PATCH] Build proper URL --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 538823c..b386ca2 100644 --- a/main.go +++ b/main.go @@ -59,8 +59,8 @@ func main() { body, writer := io.Pipe() - // TODO: URL - req, err := http.NewRequest(http.MethodPost, "ipfs.narwhal-frog.ts.net", body) + url := fmt.Sprintf("http://%v:%v/api/v0/add", ipfsHost, ipfsPort) + req, err := http.NewRequest(http.MethodPost, url, body) if err != nil { githubactions.Fatalf("Unable to create request: %v", err.Error()) }