feat: accept connection structure

This commit is contained in:
2025-04-27 15:40:07 +02:00
parent f137795414
commit e8def487d4

View File

@ -4,7 +4,6 @@ import (
"encoding/json"
"flag"
"fmt"
"net"
"os"
"os/signal"
"syscall"
@ -118,7 +117,7 @@ func StartServer(addr *hsp.Adddress) {
srv := server.NewServer(*addr)
fmt.Printf("Server created on address: %s\n", srv.Addr.String())
handler := make(chan net.Conn, 1)
handler := make(chan *hsp.Connection, 1)
router := server.NewRouter()
@ -263,6 +262,3 @@ func main() {
StartSession(addr, df, &headerList)
}