tls: optimized code

This commit is contained in:
nadoo committed 2018-11-25 15:41:47 +08:00
1 parent d37c2e2a35
commit 25c9721b00
5 files changed
+41 -29

No files matched your search

+3 -1
View File
@@ -115,7 +115,9 @@ func (s *TProxy) ListenAndServeUDP() {
}
// Serve .
func (s *TProxy) Serve(c net.Conn) {}
func (s *TProxy) Serve(c net.Conn) {
log.F("[tproxy] func Serve: can not be called directly")
}
// ReadFromUDP reads a UDP packet from c, copying the payload into b.
// It returns the number of bytes copied into b and the return address