about summary refs log tree commit diff stats
path: root/internal/listenfd
diff options
context:
space:
mode:
authorAlan Pearce2024-06-28 21:05:01 +0200
committerAlan Pearce2024-06-28 21:05:01 +0200
commit8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9 (patch)
treec0f0e781c2279365d42be4ef3fd34b5160d8b7d3 /internal/listenfd
parent0fb7d2fdcb5ad199915dbe16d7e06d3f04c67eae (diff)
downloadwebsite-8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9.tar.lz
website-8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9.tar.zst
website-8517cc3937c64dbe78f60a7b33b8c0ea1e8cb8e9.zip
fix typo in listenfd
Diffstat (limited to 'internal/listenfd')
-rw-r--r--internal/listenfd/listenfd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/listenfd/listenfd.go b/internal/listenfd/listenfd.go
index 72259aa..651c245 100644
--- a/internal/listenfd/listenfd.go
+++ b/internal/listenfd/listenfd.go
@@ -13,7 +13,7 @@ import (
 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)
 	}