]> Sergey Matveev's repositories - godlighty.git/commitdiff
Forcefully listen on :: IPv6 master
authorSergey Matveev <stargrave@stargrave.org>
Sat, 29 Nov 2025 12:52:08 +0000 (15:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 29 Nov 2025 12:52:25 +0000 (15:52 +0300)
cmd/godlighty/main.go

index 6cbba08be95038cbd6840c442c6817e1db88c5ab..0cceb3771f37beda7032fb8889fa037b0d14d48b 100644 (file)
@@ -59,7 +59,7 @@ func main() {
        shutdown := make(chan os.Signal, 1)
        signal.Notify(shutdown, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
        exitErr := make(chan error)
-       l, err := godlighty.DeadlinedListen("tcp", *bind, RWTimeout, RWTimeout)
+       l, err := godlighty.DeadlinedListen("tcp6", *bind, RWTimeout, RWTimeout)
        if err != nil {
                log.Fatalln(err)
        }