mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07:00
remove comment
This commit is contained in:
@@ -23,8 +23,6 @@ public:
|
||||
amnezia::ProtocolConfig processConfigWithLocalSettings(const amnezia::ConnectionSettings &settings,
|
||||
amnezia::ProtocolConfig protocolConfig) override;
|
||||
|
||||
/// Uploads server.json inbound (port, streamSettings, client flows). Optionally appends a new VLESS client.
|
||||
/// When appendNewClient is false, rebuilds admin client config in containerConfig from the first server client.
|
||||
amnezia::ErrorCode applyServerSettingsToRemote(const amnezia::ServerCredentials &credentials,
|
||||
amnezia::DockerContainer container,
|
||||
amnezia::ContainerConfig &containerConfig,
|
||||
@@ -56,7 +54,6 @@ private:
|
||||
QJsonObject mergeStreamSettingsForServerInbound(const amnezia::XrayServerConfig &srv,
|
||||
const QJsonObject &existingStreamSettings) const;
|
||||
|
||||
// Builds the native xray "streamSettings" JSON object from XrayServerConfig
|
||||
QJsonObject buildStreamSettings(const amnezia::XrayServerConfig &srv,
|
||||
const QString &clientId) const;
|
||||
};
|
||||
|
||||
@@ -100,7 +100,6 @@ struct XrayServerConfig {
|
||||
QString site;
|
||||
bool isThirdPartyConfig = false;
|
||||
|
||||
// Extended VLESS fields: empty in persisted JSON means "not set" (UI defaults applied in XrayConfigModel).
|
||||
QString security;
|
||||
QString flow;
|
||||
QString fingerprint;
|
||||
@@ -140,10 +139,8 @@ struct XrayProtocolConfig {
|
||||
void setClientConfig(const XrayClientConfig &config);
|
||||
void clearClientConfig();
|
||||
|
||||
/// Set in fromJson when persisted server fields are missing (typical shared profile).
|
||||
bool needsClientHydration = false;
|
||||
|
||||
/// Fills serverConfig from client nativeConfig (outbound streamSettings). For read-only UI.
|
||||
bool hydrateServerConfigFromClientNative();
|
||||
};
|
||||
|
||||
|
||||
@@ -185,7 +185,6 @@ PageType {
|
||||
Layout.bottomMargin: 8
|
||||
Layout.leftMargin: 16
|
||||
Layout.rightMargin: 16
|
||||
// Show Save while port is being edited (before editingFinished) or other fields changed.
|
||||
visible: listView.enabled
|
||||
&& (XrayConfigModel.hasUnsavedChanges
|
||||
|| textFieldWithHeaderType.textField.text !== port)
|
||||
|
||||
Reference in New Issue
Block a user