mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-22 20:40:12 +00:00
feat: no auth or obfs warning
This commit is contained in:
parent
d56f24c557
commit
48358a7642
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user