summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
committerPaul Buetow <paul@buetow.org>2021-11-06 12:33:19 +0200
commitc8c42aa26861e28e6f22458fffd8db6d9b712d70 (patch)
treeb70a61237969e212c40e18f9b46f8332c11e0c2c /cmd
parent3d02a4a917dbdd85c40dbdb0fcac65c82fb7fe5b (diff)
Remove insecure and dangerous relaxed auth mode
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dserver/main.go6
1 files changed, 0 insertions, 6 deletions
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)