From c8c42aa26861e28e6f22458fffd8db6d9b712d70 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Nov 2021 12:33:19 +0200 Subject: Remove insecure and dangerous relaxed auth mode --- cmd/dserver/main.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cmd') diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index 1a4af75..fff41f0 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -31,8 +31,6 @@ func main() { user.NoRootCheck() flag.BoolVar(&color, "color", false, "Enable ANSII terminal colors") - flag.BoolVar(&config.ServerRelaxedAuthEnable, "RELAXED_AUTH_I_AM_REALLY_SURE", false, - "Enable relaxced SSH auth mode (don't use in production!)") flag.BoolVar(&displayVersion, "version", false, "Display version") flag.IntVar(&args.SSHPort, "port", config.DefaultSSHPort, "SSH server port") flag.IntVar(&shutdownAfter, "shutdownAfter", 0, "Shutdown after so many seconds") @@ -72,10 +70,6 @@ func main() { wg.Add(1) dlog.Start(ctx, &wg, source.Server) - if config.ServerRelaxedAuthEnable { - dlog.Server.Fatal("SSH relaxed-auth mode enabled") - } - if pprof != "" { dlog.Server.Info("Starting PProf", pprof) go http.ListenAndServe(pprof, nil) -- cgit v1.2.3