Skip to content

Commit ee4278c

Browse files
authored
Merge pull request #236 from openziti/increase-header-size
Increase allowed hello message headers size to 16k from 4k. Fixes #235
2 parents 9fb68d5 + dd08a1e commit ee4278c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func readHelloV2(peer io.Reader) (*Message, error) {
473473
}
474474
headersLength := readUint32(messageSection[12:16])
475475
bodyLength := readUint32(messageSection[16:20])
476-
if headersLength > 4192 || bodyLength > 4192 {
476+
if headersLength > 16384 || bodyLength > 4192 {
477477
return nil, fmt.Errorf("hello message too big. header len: %v, body len: %v", headersLength, bodyLength)
478478
}
479479

0 commit comments

Comments
 (0)