diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-23 17:14:52 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-23 17:15:18 +0700 |
| commit | 025154e192d4a87262bb6280f20f488a8369f2cc (patch) | |
| tree | 1f991beb7a3fd15d80162154ab2987c05d97dcdf /cmd | |
| parent | a12aeb08d2e6a3532e7e335702acb2a3611f18bb (diff) | |
| download | kilabit.info-025154e192d4a87262bb6280f20f488a8369f2cc.tar.xz | |
cmd/www-kilabit: add option to change HTTP listen address
This is allow us to serve www-kilabit on local, while use different
port (17000) for development.
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/www-kilabit/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/www-kilabit/main.go b/cmd/www-kilabit/main.go index d01605d..4704161 100644 --- a/cmd/www-kilabit/main.go +++ b/cmd/www-kilabit/main.go @@ -24,7 +24,6 @@ func main() { serveOpts = ciigo.ServeOptions{ ConvertOptions: convertOpts, Mfs: memfsContent, - Address: `127.0.0.1:7000`, } cmd string @@ -32,6 +31,7 @@ func main() { ) flag.BoolVar(&serveOpts.IsDevelopment, "dev", false, "Run in development mode") + flag.StringVar(&serveOpts.Address, `address`, `127.0.0.1:7000`, `Address to serve`) flag.Parse() cmd = strings.ToLower(flag.Arg(0)) |
