aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-06 20:59:47 +0700
committerShulhan <ms@kilabit.info>2023-11-07 20:18:58 +0700
commit31086115d5c35a60a70b7e7ff6abda5ebc46915a (patch)
tree85fd43b57806cf1afeb2cdb2b4adc631dc64e59d /cmd
parent3bece2842069f98d048d2cdfec0b2f8250d38412 (diff)
downloadciigo-31086115d5c35a60a70b7e7ff6abda5ebc46915a.tar.xz
cmd/ciigo: set default IP address to loopback on serve command
Previously, the default IP address is 0.0.0.0 which listen on all network interfaces. Listening to all network interface should be explicit by user.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ciigo/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ciigo/main.go b/cmd/ciigo/main.go
index 8901b91..8875fb8 100644
--- a/cmd/ciigo/main.go
+++ b/cmd/ciigo/main.go
@@ -59,7 +59,7 @@ func main() {
htmlTemplate = flag.String("template", "", "path to HTML template")
outputFile = flag.String("out", "ciigo_static.go",
"path to output of .go embed file")
- address = flag.String("address", ":8080",
+ address = flag.String("address", `127.0.0.1:8080`,
"the binding address for HTTP server")
exclude = flag.String("exclude", "",
"a regex to exclude certain paths from being scanned during covert, embeded, watch, or serve")