diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-09 12:57:32 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-09 12:57:32 +0700 |
| commit | fe14373978ab611cb7757df9f3ade411d9f716b0 (patch) | |
| tree | c2ae2825f4bd070378682d7e9f6b70720a7870ab /awwan.go | |
| parent | 7063eb2298a349696a1adf0c08ff2650867e8def (diff) | |
| download | awwan-fe14373978ab611cb7757df9f3ade411d9f716b0.tar.xz | |
cmd/awwan: add option "-address" to command serve
The "-address" option allow defining the HTTP server address to serve
the web-user interface.
Diffstat (limited to 'awwan.go')
| -rw-r--r-- | awwan.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -297,15 +297,15 @@ out: return err } -// Serve start the web-user interface that serve awwan actions through HTTP. -func (aww *Awwan) Serve(isDev bool) (err error) { +// Serve start the web-user interface that serve awwan through HTTP. +func (aww *Awwan) Serve(address string, isDev bool) (err error) { var logp = `Serve` if isDev { go internal.Watch() } - aww.httpd, err = newHttpServer(aww) + aww.httpd, err = newHttpServer(aww, address) if err != nil { return fmt.Errorf(`%s: %w`, logp, err) } |
