Merge branch 'feature/KASM-5204-add-udpSize-config-entry' into 'master'

KASM-5204 Add config key network.udp.payload_size

Closes KASM-5204

See merge request kasm-technologies/internal/KasmVNC!159
This commit is contained in:
Matthew McClaskey 2025-03-11 18:40:00 +00:00
commit 6184b25546
2 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,7 @@ network:
udp:
public_ip: auto
port: auto
payload_size: auto
stun_server: auto
ssl:
pem_certificate: /etc/ssl/certs/ssl-cert-snakeoil.pem

View File

@ -2366,6 +2366,24 @@ sub DefineConfigToCLIConversion {
$value;
}
}),
KasmVNC::CliOption->new({
name => 'udpSize',
configKeys => [
KasmVNC::ConfigKey->new({
name => "network.udp.payload_size",
validator => KasmVNC::PatternValidator->new({
pattern => qr/^(auto|\d+)$/,
errorMessage => "must be 'auto' or an integer"
}),
})
],
isActiveSub => sub {
$self = shift;
my $value = $self->configValue();
isPresent($value) && $value ne 'auto';
}
}),
KasmVNC::CliOption->new({
name => 'udpPort',
configKeys => [