aboutsummaryrefslogtreecommitdiff
path: root/awwan.go
diff options
context:
space:
mode:
Diffstat (limited to 'awwan.go')
-rw-r--r--awwan.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/awwan.go b/awwan.go
index 06d59bf..82142aa 100644
--- a/awwan.go
+++ b/awwan.go
@@ -7,6 +7,7 @@ import (
"context"
"fmt"
"log"
+ "net"
"os"
"path/filepath"
"strconv"
@@ -483,14 +484,14 @@ out:
}
// Serve start the web-user interface that serve awwan through HTTP.
-func (aww *Awwan) Serve(address string, isDev bool) (err error) {
+func (aww *Awwan) Serve(listener net.Listener, address string, isDev bool) (err error) {
var logp = `Serve`
if isDev {
go internal.Watch()
}
- aww.httpd, err = newHTTPServer(aww, address)
+ aww.httpd, err = newHTTPServer(aww, listener, address)
if err != nil {
return fmt.Errorf(`%s: %w`, logp, err)
}