amnezia-client/docs/configs/serverConfigProcessingOnConnection.plantuml
vladimir.kuznetsov 5a2a96982a added parameter nativeConfigParametersStorage to .vpn format config.
- if the parameter is found, parts of the native config for protocols will be downloaded (so far only wireguard) and updated
- minor refactoring of error handling, now reference are used instead of pointers
- removed temp config with allowedIps
2023-01-26 19:44:08 +03:00

21 lines
577 B
Text

@startuml configProcessingOnConnection
start
:connect button clicked;
:createVpnConfiguration();
:createVpnConfigurationForProto();
if (serverConfig.contains(nativeConfigParametrsStorage)) then (yes)
:update last_config with data from nativeConfigParametrsStorage;
else if (serverConfig.contains(last_config)) then (yes)
:do nothing special;
else if (serverConfig.contains(admin credentials)) then (yes)
:generate new native config;
:save config in last_config;
else
:return empty config and error;
stop
endif
:continue connect process;
stop
@enduml