]> git.proxmox.com Git - pve-xtermjs.git/commit
termproxy: fix port/fd range check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Oct 2023 12:57:03 +0000 (14:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Oct 2023 12:57:04 +0000 (14:57 +0200)
commit749ebb0907293a9f1cf0f5074e0a240f39f94f6f
tree24976489921283527595204db63c0c793da6acfc
parentf451fe27686b21ef43d7521cb8136e683612422e
termproxy: fix port/fd range check

The valid upper range was swapped, while at it switch from i32::Max to
RawFd::Max, while currently RawFd is a type alias to i32, it's easier
to grasp what's going on and might even change in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
termproxy/src/main.rs