[
https://issues.apache.org/jira/browse/NIFI-12751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815645#comment-17815645
]
ASF subversion and git services commented on NIFI-12751:
--------------------------------------------------------
Commit 84878df61ab7340bd7340922f651e862afa74b9a in nifi's branch
refs/heads/main from Ferenc Kis
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=84878df61a ]
NIFI-12751 [MiNiFi] Prefer IPv4 address when sending NetworkInfo to C2
Signed-off-by: Ferenc Erdei <[email protected]>
This closes #8370
> [MiNiFi] Prefer IPv4 address for creating NetworkInfo
> -----------------------------------------------------
>
> Key: NIFI-12751
> URL: https://issues.apache.org/jira/browse/NIFI-12751
> Project: Apache NiFi
> Issue Type: Improvement
> Components: MiNiFi
> Reporter: Ferenc Kis
> Assignee: Ferenc Kis
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> On Windows Server 2019 the agent sends the followingÂ
> {code}
> "networkInfo": \{
> "deviceId": "ethernet_32777",
> "hostname": "fe80:0:0:0:6f46:95b8:1b4d:9ab5%ethernet_32777",
> "ipAddress": "fe80:0:0:0:6f46:95b8:1b4d:9ab5%ethernet_32777"
> },
> {code}
> The same network interface also has an IPv4 address where the hostname
> matches what the hostname command would give back in the shell.
> In such cases when the same network interface has IPv4 and IPv6 addresses,
> prefer the the IPv4 as it provides more information for the user.
> Note: this does not affect anything in terms of network connectivity, only
> the information which is sent by the agent to the C2 server
--
This message was sent by Atlassian Jira
(v8.20.10#820010)