aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 18:21:54 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 18:21:54 -0800
commitf9b22750dced97a974005593909077d09b1129b9 (patch)
tree63e0630ec23cab5f7b25d61ff5751d6e4d6230f0 /cmd
parent1413eca1f1dfea2fe125a5dc9bde293058cc3e03 (diff)
downloadneko-f9b22750dced97a974005593909077d09b1129b9.tar.gz
neko-f9b22750dced97a974005593909077d09b1129b9.tar.bz2
neko-f9b22750dced97a974005593909077d09b1129b9.zip
test: mock RSS feeds in E2E tests
Diffstat (limited to 'cmd')
-rw-r--r--cmd/neko/main.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/neko/main.go b/cmd/neko/main.go
index 106a22e..333e5ce 100644
--- a/cmd/neko/main.go
+++ b/cmd/neko/main.go
@@ -13,6 +13,7 @@ import (
"flag"
+ "adammathes.com/neko/internal/safehttp"
"adammathes.com/neko/internal/vlog"
"adammathes.com/neko/web"
)
@@ -71,6 +72,9 @@ func Run(args []string) error {
f.StringVar(&password, "password", "", "password for web interface")
f.StringVar(&password, "p", "", "password for web interface (short)")
+ var allowLocal bool
+ f.BoolVar(&allowLocal, "allow-local", false, "allow connections to local network addresses")
+
f.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
f.PrintDefaults()
@@ -85,6 +89,10 @@ func Run(args []string) error {
f.Usage()
return nil
}
+
+ if allowLocal {
+ safehttp.AllowLocal = true
+ }
// reads config if present and sets defaults
if err := config.Init(configFile); err != nil {
return fmt.Errorf("config error: %v", err)