diff options
| author | Shulhan <ms@kilabit.info> | 2026-02-02 23:11:46 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-02-04 04:46:49 +0700 |
| commit | 4040e757445faee58544bf65bc5fa65458b56f9d (patch) | |
| tree | f970e8717cfdf60afbb4d19127ef8693cbda83d0 /environment.go | |
| parent | e7e5f54ce3175c6c8ba326c0cc97a13cc9d8fe49 (diff) | |
| download | gorankusu-dev.tar.xz | |
The internal/cmd/gorankusu now can run using systemd.socket(5).
Diffstat (limited to 'environment.go')
| -rw-r--r-- | environment.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/environment.go b/environment.go index ac9b602..cb2ba3f 100644 --- a/environment.go +++ b/environment.go @@ -5,6 +5,7 @@ package gorankusu import ( "fmt" + "net" "os" "sync" "time" @@ -28,6 +29,10 @@ type Environment struct { // testing currently running. AttackRunning *RunRequest + // Listener define the [net.Listener] for accepting and listening HTTP + // server. + Listener net.Listener `ini:"-"` + // ListenAddress is the address and port where Gorankusu HTTP web // will run. // If its emtpy, it will set to DefaultListenAddress. |
