mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
15 lines
430 B
Diff
15 lines
430 B
Diff
--- command.c.orig 2017-12-29 15:30:57.000000000 +0100
|
|
+++ command.c 2019-02-28 12:21:06.000000000 +0100
|
|
@@ -1011,11 +1011,7 @@
|
|
icidr = 24;
|
|
|
|
if (rip == -1 || gip == -1 || rip == gip ||
|
|
-#ifdef Linux
|
|
((rip & 0x7f) == 0x7f) || rip == 0 || IN_MULTICAST(ntohl(rip))) {
|
|
-#else
|
|
- IN_LOOPBACK(ntohl(rip)) || IN_ZERONET(ntohl(rip)) || IN_MULTICAST(ntohl(rip))) {
|
|
-#endif
|
|
printf("Invalid address\n");
|
|
return 0;
|
|
}
|