projects
/
vors.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5209e56
)
Do not exit before handshake failure is shown
author
Sergey Matveev <stargrave@stargrave.org>
Thu, 11 Apr 2024 16:57:39 +0000 (19:57 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Thu, 11 Apr 2024 16:57:39 +0000 (19:57 +0300)
cmd/client/main.go
patch
|
blob
|
history
diff --git
a/cmd/client/main.go
b/cmd/client/main.go
index ceb8563d6900b8893d9346053880dbfe11b74156cc793f585bd0bef589795ef1..f33814f53bdf4e64756fc2e76774fd76a5548cf3427bf7740f98570d8a54ff01 100644
(file)
--- a/
cmd/client/main.go
+++ b/
cmd/client/main.go
@@
-160,14
+160,17
@@
func main() {
for {
buf, err := vors.PktRead(ctrl)
if err != nil {
- log.Fatalln("rx", err)
+ log.Println("rx", err)
+ break
}
buf, err = rxCS.Decrypt(buf[:0], nil, buf)
if err != nil {
- log.Fatalln("rx decrypt", err)
+ log.Println("rx decrypt", err)
+ break
}
rx <- buf
}
+ Finish <- struct{}{}
}()
srvAddrUDP := vors.MustResolveUDP(*srvAddr)