Skip to content

Commit

Permalink
Fixed paste value on server address selected (#4954)
Browse files Browse the repository at this point in the history
* Fixed paste value on server address selected

* Updated CHANGELOG

Co-authored-by: Álex <[email protected]>
  • Loading branch information
Machi3mfl and AlexRuiz7 authored Dec 19, 2022
1 parent 02cde66 commit 3b398cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Independently load each dashboard from the `Agents Overview` page [#4363](https://github.com/wazuh/wazuh-kibana-app/pull/4363)
- The endpoint `/agents/summary/status` handler was adapted to the new interface. [#3874](https://github.com/wazuh/wazuh-kibana-app/pull/3874)
- Updated and added operating systems, versions, architectures commands of Install and enroll the agent and commands of Start the agent in the deploy new agent section [#4458](https://github.com/wazuh/wazuh-kibana-app/pull/4458)
- Added cluster's IP and protocol as suggestions in the agent deployment wizard. [#4776](https://github.com/wazuh/wazuh-kibana-app/pull/4776)
- Added cluster's IP and protocol as suggestions in the agent deployment wizard. [#4776](https://github.com/wazuh/wazuh-kibana-app/pull/4776) [#4954](https://github.com/wazuh/wazuh-kibana-app/pull/4954)
- Show OS name and OS version in the agent installation wizard. [#4851](https://github.com/wazuh/wazuh-kibana-app/pull/4851)
- Changed the endpoint that updates the plugin configuration to support multiple settings. [#4501](https://github.com/wazuh/wazuh-kibana-app/pull/4501)
- The button to export the app logs is now disabled when there are no results, instead of showing an error toast [#4972](https://github.com/wazuh/wazuh-kibana-app/pull/4972)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ function getRemoteProtocol(protocols: Protocol[]) {
*/
async function getConnectionConfig(nodeSelected: ServerAddressOptions, defaultServerAddress?: string) {
const nodeName = nodeSelected?.label;
const nodeIp = nodeSelected?.value;
if(!defaultServerAddress){
if(nodeSelected.nodetype !== 'custom'){
const remoteConfig = await getRemoteConfiguration(nodeName);
return { serverAddress: remoteConfig.name, udpProtocol: remoteConfig.isUdp, connectionSecure: remoteConfig.haveSecureConnection };
return { serverAddress: nodeIp, udpProtocol: remoteConfig.isUdp, connectionSecure: remoteConfig.haveSecureConnection };
}else{
return { serverAddress: nodeName, udpProtocol: false, connectionSecure: true };
}
Expand Down

0 comments on commit 3b398cb

Please sign in to comment.