Skip to content

Commit

Permalink
Update dbms/src/Server/MetricsPrometheus.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Zhi Qi <30543181+LittleFall@users.noreply.github.com>
  • Loading branch information
ywqzzy and LittleFall committed Feb 8, 2023
1 parent 4f3fe15 commit 21e7dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Server/MetricsPrometheus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ namespace
{
inline bool isIPv6(const String & input_address)
{
char str[INET6_ADDRSTRLEN];
if (input_address.empty())
return false;
char str[INET6_ADDRSTRLEN];
return inet_pton(AF_INET6, input_address.c_str(), str) == 1;
}
} // namespace
Expand Down

0 comments on commit 21e7dcc

Please sign in to comment.