From d8ab997464694f37968f058e98a2a24dfd010b4d Mon Sep 17 00:00:00 2001 From: Alexander Renz Date: Mon, 30 Dec 2024 12:32:42 +0100 Subject: [PATCH] config: update bind IP address to support IPv6 and modify server URL in tests --- cmd/server/config.toml | 2 +- test/hmac_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server/config.toml b/cmd/server/config.toml index c4f9199..ed136bb 100644 --- a/cmd/server/config.toml +++ b/cmd/server/config.toml @@ -16,7 +16,7 @@ precaching = true filettlenabled = true deduplicationenabled = true globalextensions = ["*"] -bind_ip = "0.0.0.0" +bind_ip = "0.0.0.0, ::1" [logging] level = "info" diff --git a/test/hmac_test.go b/test/hmac_test.go index 36fea2c..855a375 100644 --- a/test/hmac_test.go +++ b/test/hmac_test.go @@ -15,7 +15,7 @@ import ( ) const ( - serverURL = "http://127.0.0.1:8080" // Replace with your actual server URL + serverURL = "http://[::]:8080" // Replace with your actual server URL secret = "changeme" // Replace with your HMAC secret key uploadPath = "hmac_icon.png" // Test file to upload protocolType = "v2" // Use v2, v, or token as needed