From 31086115d5c35a60a70b7e7ff6abda5ebc46915a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 6 Nov 2023 20:59:47 +0700 Subject: 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. --- cmd/ciigo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.3