Skip to content

Commit cc45044

Browse files
committed
fix socket feature check
it requires you to have at least one socket type enabled but the feature `socket-dhcp` does not exist because it's name is `socket-dhcpv4`. So if that's only socket type you want enabled you weren't able to do that due to this broken check.
1 parent d04e268 commit cc45044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ compile_error!("You must enable at least one of the following features: proto-ip
104104
feature = "socket-udp",
105105
feature = "socket-tcp",
106106
feature = "socket-icmp",
107-
feature = "socket-dhcp",
107+
feature = "socket-dhcpv4",
108108
feature = "socket-dns",
109109
))
110110
))]

0 commit comments

Comments
 (0)