refactoring: all protocol models now work with c++ classes
This commit is contained in:
parent
65f60ab922
commit
d766a001e3
25 changed files with 301 additions and 295 deletions
|
|
@ -80,7 +80,7 @@ void InstallController::install(DockerContainer container, int port, TransportPr
|
|||
|
||||
int s1 = QRandomGenerator::global()->bounded(15, 150);
|
||||
int s2 = QRandomGenerator::global()->bounded(15, 150);
|
||||
while (s1 + AwgConstant::messageInitiationSize == s2 + AwgConstant::messageResponseSize) {
|
||||
while (s1 + awg::messageInitiationSize == s2 + awg::messageResponseSize) {
|
||||
s2 = QRandomGenerator::global()->bounded(15, 150);
|
||||
}
|
||||
|
||||
|
|
@ -935,6 +935,11 @@ bool InstallController::isUpdateDockerContainerRequired(const DockerContainer co
|
|||
auto oldConfig = qSharedPointerCast<AwgProtocolConfig>(newProtoConfig);
|
||||
return !newConfig->hasEqualServerSettings(*oldConfig.data());
|
||||
}
|
||||
case Proto::WireGuard: {
|
||||
auto newConfig = qSharedPointerCast<WireGuardProtocolConfig>(oldProtoConfig);
|
||||
auto oldConfig = qSharedPointerCast<WireGuardProtocolConfig>(newProtoConfig);
|
||||
return !newConfig->hasEqualServerSettings(*oldConfig.data());
|
||||
}
|
||||
default: return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue