KASM-3542 new yaml options http-header, stun server

This commit is contained in:
Matthew McClaskey
2022-11-10 10:36:24 +00:00
parent d9b5b5db6a
commit bd8b6d522a
4 changed files with 62 additions and 10 deletions

View File

@@ -33,6 +33,16 @@ sub new {
scalar $self->configValues() > 0;
},
toStringSub => $args->{toStringSub} || sub {
my $self = shift;
my $derivedValue = $self->deriveValue();
if (defined($derivedValue)) {
return "-$self->{name} " . "'$derivedValue'";
}
"-$self->{name}";
},
errors => []
}, $class;
}
@@ -75,12 +85,7 @@ sub toString {
return unless $self->isActive();
my $derivedValue = $self->deriveValue();
if (defined($derivedValue)) {
return "-$self->{name} " . "'$derivedValue'";
}
"-$self->{name}";
$self->{toStringSub}->($self);
}
sub toValue {