fix dtls connection
This commit is contained in:
1 parent
fb29d5c80e
commit
bb106e2d89
11 files changed
+249
-58
No files matched your search
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
const (
|
||||
defaultKeepAlivePeriod = 10 * time.Second
|
||||
defaultBufferSize = 4096
|
||||
)
|
||||
|
||||
type metadata struct {
|
||||
@@ -27,7 +28,7 @@ func (h *tunHandler) parseMetadata(md mdata.Metadata) (err error) {
|
||||
|
||||
h.md.bufferSize = mdutil.GetInt(md, bufferSize)
|
||||
if h.md.bufferSize <= 0 {
|
||||
h.md.bufferSize = 1500
|
||||
h.md.bufferSize = defaultBufferSize
|
||||
}
|
||||
|
||||
if mdutil.GetBool(md, keepAlive) {
|
||||
|
||||
Reference in new issue
Block a user