Skip to content

Commit 27d339c

Browse files
committed
fix: do not return empty string for /32 input
1 parent c7059cc commit 27d339c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/ip_utils.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ namespace duckdb
6666
else
6767
{
6868
// For /32, the IP itself is the only host (Hostroute)
69-
info.network = ip;
69+
info.network = ip;
70+
info.broadcast = '-';
71+
info.hostMin = '-';
72+
info.hostMax = '-';
7073
}
7174

7275
return info;

0 commit comments

Comments
 (0)