fixes for config in 1.21.11

This commit is contained in:
Admin Else
2026-03-31 16:51:07 +02:00
parent f749d3bfc5
commit 958102e43c
9 changed files with 91 additions and 28 deletions
+1 -6
View File
@@ -5,22 +5,17 @@ import (
"log/slog"
"net"
"github.com/admin-else/strom/event"
"github.com/admin-else/strom/proto"
"github.com/admin-else/strom/proto_base"
"github.com/admin-else/strom/text"
)
func Servee(c net.Conn) (ret *proto.Conn) {
ret = &proto.Conn{}
_ = ret.SetVersion("1.21.8") // cant fail
ret.SetState(proto_base.Handshaking)
ret.SetCompressionThreshold(-1)
ret = proto.NewConn()
ret.Actor = proto_base.Servee
ret.Conn = c
ret.R = c
ret.W = c
ret.Loop = event.NewLoop()
return
}