add optional encryption flag to login server and update ServeLogin behavior

This commit is contained in:
adman
2026-05-30 15:53:35 +02:00
parent 3e5b141ec7
commit 58c9a60236
3 changed files with 23 additions and 10 deletions
+1
View File
@@ -67,6 +67,7 @@ func Help(args []string) (err error) {
func mainE() (err error) {
subcommands["help"] = Help
args := os.Args
args = []string{"TEST", "packet-spy", "-addr", "127.0.0.1:25571"}
if len(args) < 2 {
err = ExpectedASubcommandErr
+1 -1
View File
@@ -102,7 +102,7 @@ func Run(args []string) (err error) {
return
}
}
_, err = server.ServeLogin(serveeConn, server.WithOtherAccount(acc), server.WithStatus(StatusResponse), server.WithoutOnlineMode())
_, err = server.ServeLogin(serveeConn, server.WithOtherAccount(acc), server.WithStatus(StatusResponse), server.WithoutOnlineMode(), server.WithoutEncryption())
if err != nil {
return
}