From 48358a7642152ec88b161ec923eb263875da74d0 Mon Sep 17 00:00:00 2001 From: Toby Date: Mon, 24 Jan 2022 16:00:26 -0800 Subject: [PATCH] feat: no auth or obfs warning --- cmd/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/server.go b/cmd/server.go index 427dc98..d38cb87 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -88,7 +88,10 @@ func server(config *serverConfig) { var err error switch authMode := config.Auth.Mode; authMode { case "", "none": - logrus.Warn("No authentication configured") + if len(config.Obfs) == 0 { + logrus.Warn("No authentication or obfuscation enabled. " + + "Your server could be accessed by anyone! Are you sure this is what you intended?") + } authFunc = func(addr net.Addr, auth []byte, sSend uint64, sRecv uint64) (bool, string) { return true, "Welcome" }