Remove Pty minimum size requirement
This commit is contained in:
parent
e5ece1489c
commit
ef6d89046b
6
util.go
6
util.go
@ -22,16 +22,10 @@ func parsePtyRequest(s []byte) (pty Pty, ok bool) {
|
||||
return
|
||||
}
|
||||
width32, s, ok := parseUint32(s)
|
||||
if width32 < 1 {
|
||||
ok = false
|
||||
}
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
height32, _, ok := parseUint32(s)
|
||||
if height32 < 1 {
|
||||
ok = false
|
||||
}
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user