mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-03-13 14:59:03 +01:00
KASM-5204 Add config key network.udp.payload_size
This commit is contained in:
parent
5ea11df3c0
commit
d933dc99ab
@ -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
|
||||
|
@ -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 => [
|
||||
|
Loading…
Reference in New Issue
Block a user