From 660e2f7b99707da37e4cad2cc67117ba460dc504 Mon Sep 17 00:00:00 2001 From: El Date: Thu, 29 Jan 2026 15:39:59 +0000 Subject: [PATCH] VNC-151 Fix for the script --- unix/vncserver | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unix/vncserver b/unix/vncserver index 9ad479c..1937732 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -2102,8 +2102,9 @@ sub DefineConfigToCLIConversion { configKeys => [ KasmVNC::ConfigKey->new({ name => "encoding.video_streaming_mode.codec", - validator => KasmVNC::EnumValidator->new({ - allowedValues => [qw(auto h264 h264_vaapi avc avc_vaapi h265 h265_vaapi hevc hevc_vaapi av1 av1_vaapi)] + validator => KasmVNC::PatternValidator->new({ + pattern => qr/^(auto|h264|h264_vaapi|avc|avc_vaapi|h265|h265_vaapi|hevc|hevc_vaapi)(,(auto|h264|h264_vaapi|avc|avc_vaapi|h265|h265_vaapi|hevc|hevc_vaapi))*$/, + errorMessage => "must be one of [auto, h264, h264_vaapi, avc, avc_vaapi, h265, h265_vaapi, hevc, hevc_vaapi, av1, av1_vaapi] or a comma-separated list of those values" }) }) ]