aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-02 23:11:46 +0700
committerShulhan <ms@kilabit.info>2026-02-04 04:46:49 +0700
commit4040e757445faee58544bf65bc5fa65458b56f9d (patch)
treef970e8717cfdf60afbb4d19127ef8693cbda83d0 /http_server.go
parente7e5f54ce3175c6c8ba326c0cc97a13cc9d8fe49 (diff)
downloadgorankusu-dev.tar.xz
cmd/gorankusu: implement socket based activation with systemdHEADmaindev
The internal/cmd/gorankusu now can run using systemd.socket(5).
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/http_server.go b/http_server.go
index cac1363..8635140 100644
--- a/http_server.go
+++ b/http_server.go
@@ -113,8 +113,9 @@ func (gorankusu *Gorankusu) initHTTPServer(isDevelopment bool) (err error) {
}
var httpdOpts = libhttp.ServerOptions{
- Memfs: memfsWWW,
- Address: gorankusu.Env.ListenAddress,
+ Listener: gorankusu.Env.Listener,
+ Memfs: memfsWWW,
+ Address: gorankusu.Env.ListenAddress,
}
gorankusu.Httpd, err = libhttp.NewServer(httpdOpts)