X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Ftlss%2Fmain.go;h=2bbc52ba4380ebea2579b7d4b7484d6f7450c9ac;hb=HEAD;hp=881d2210990b85d1d745b5b6ac0f0c78e749c2fd;hpb=72fc7e6d14a5113b013514eecd3c5b3485671631;p=ucspi.git diff --git a/cmd/tlss/main.go b/cmd/tlss/main.go index 881d221..2bbc52b 100644 --- a/cmd/tlss/main.go +++ b/cmd/tlss/main.go @@ -1,19 +1,17 @@ -/* -ucspi/cmd/tlsc -- UCSPI TLS server -Copyright (C) 2021 Sergey Matveev - -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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// ucspi/cmd/tlss -- UCSPI TCP proxy server +// Copyright (C) 2021-2024 Sergey Matveev +// +// 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package main @@ -105,6 +103,7 @@ func main() { worker := make(chan struct{}) go func() { io.Copy(rw, tlsConn) + rw.Close() }() go func() { io.Copy(tlsConn, wr)