]> Cypherpunks.ru repositories - ucspi.git/blobdiff - cmd/tlss/main.go
Raise copyright years
[ucspi.git] / cmd / tlss / main.go
index 881d2210990b85d1d745b5b6ac0f0c78e749c2fd..a42743313e954d259dab5a5596c0d219eec56fae 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ucspi/cmd/tlsc -- UCSPI TLS server
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -105,6 +105,7 @@ func main() {
        worker := make(chan struct{})
        go func() {
                io.Copy(rw, tlsConn)
+               rw.Close()
        }()
        go func() {
                io.Copy(tlsConn, wr)