From 9d2b271823531edfc151f846ba4456a194a1b5ca Mon Sep 17 00:00:00 2001 From: Abhijit Chaudhari Date: Tue, 18 Feb 2025 15:54:33 +0530 Subject: [PATCH] Use tcp instead of tcp4 network config to support IPv6 bindling To support dual stack and IPv6 binding, we need to use tcp network config in fiber app. By default fiber app uses tcp4 which only binds to IPv4 --- cmd/local-volume-fileserver/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/local-volume-fileserver/main.go b/cmd/local-volume-fileserver/main.go index 241817a..3931d42 100644 --- a/cmd/local-volume-fileserver/main.go +++ b/cmd/local-volume-fileserver/main.go @@ -19,7 +19,9 @@ func main() { os.Exit(0) } - app := fiber.New() + app := fiber.New(fiber.Config{ + Network: fiber.NetworkTCP, + }) mountPoint := os.Getenv("MOUNT_POINT") if mountPoint == "" {