add UDP support for reverse proxy tunnel

This commit is contained in:
ginuerzh
2023-02-02 19:18:10 +08:00
parent 9750998940
commit 416405b1f0
29 changed files with 226 additions and 87 deletions

View File

@ -110,7 +110,7 @@ func (l *rudpListener) Close() error {
close(l.closed)
if l.ln != nil {
l.ln.Close()
l.ln = nil
// l.ln = nil
}
}

View File

@ -9,8 +9,8 @@ import (
const (
defaultTTL = 5 * time.Second
defaultReadBufferSize = 1500
defaultReadQueueSize = 128
defaultReadBufferSize = 4096
defaultReadQueueSize = 1024
defaultBacklog = 128
)