all repos — website @ 8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9

My website

fix typo in listenfd
Alan Pearce alan@alanpearce.eu
Fri, 28 Jun 2024 21:05:01 +0200
commit

8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9

parent

0fb7d2fdcb5ad199915dbe16d7e06d3f04c67eae

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/listenfd/listenfd.gointernal/listenfd/listenfd.go
@@ -13,7 +13,7 @@ const fdStart = 3
 
 func GetListener(i uint64, addr string) (l net.Listener, err error) {
-	l, err = getFDSocket(0)
+	l, err = getFDSocket(i)
 	if err != nil {
 		log.Warn("could not create listener from listenfd", "error", err)
 	}