aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason <jason@kayoway.com>2020-01-08 17:57:26 +0900
committerSimon Ser <contact@emersion.fr>2020-01-08 10:29:52 +0100
commitb5cb6de2328c379d73ac4bf0f71d326fa48d6c56 (patch)
tree63d98c4a2e1432394a5d8cee83d478933034bc25
parenta2cbb4e417fdc8fa0d66db481ad721f5af4392bd (diff)
Allow WLR_RDP_PORT to be any valid TCP/UDP port number
-rw-r--r--backend/backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/backend.c b/backend/backend.c
index bb75c5e0..6b804d3c 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -157,9 +157,9 @@ static struct wlr_backend *attempt_rdp_backend(struct wl_display *display,
if (_port) {
char *endptr;
int port = strtol(_port, &endptr, 10);
- if (*endptr || port <= 0 || port >= 1024) {
+ if (*endptr || port <= 0 || port > 65535) {
wlr_log(WLR_ERROR, "Expected WLR_RDP_PORT to be a "
- "positive integer less than 1024");
+ "positive integer less or equal to 65535");
wlr_backend_destroy(backend);
return NULL;
}