diff --git a/Dockerfile b/Dockerfile index 59503ab..7b000c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM golang:alpine AS builder WORKDIR /app COPY . . +COPY qgo.quizer.space.pem . +COPY qgo.quizer.space-key.pem . RUN go build -o main . FROM alpine:latest diff --git a/main.go b/main.go index 53a6938..553dd8d 100644 --- a/main.go +++ b/main.go @@ -52,12 +52,12 @@ func handleChatSession(session *webtransport.Session) { return } - go func(s webtransport.Stream) { + go func(s *webtransport.Stream) { defer s.Close() buf := make([]byte, 1024) n, _ := s.Read(buf) fmt.Printf("Message: %s\n", string(buf[:n])) s.Write([]byte("Server: OK")) - }(*stream) + }(stream) } }