KASM-5204 Add config key network.udp.payload_size

This commit is contained in:
Dmitry Maksyoma 2025-02-11 20:10:22 +13:00
parent 5ea11df3c0
commit d933dc99ab
No known key found for this signature in database
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 => [