Skip to content

Commit

Permalink
config: update bind IP address to support IPv6 and modify server URL …
Browse files Browse the repository at this point in the history
…in tests
  • Loading branch information
PlusOne committed Dec 30, 2024
1 parent 264b9c5 commit d8ab997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/server/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/hmac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8ab997

Please sign in to comment.