| 780 | } |
| 781 | |
| 782 | bool IsLocalAddress (const boost::asio::ip::address& addr) |
| 783 | { |
| 784 | auto mtu = // TODO: implement better |
| 785 | #ifdef _WIN32 |
| 786 | GetMTUWindows(addr, 0); |
| 787 | #else |
| 788 | GetMTUUnix(addr, 0); |
| 789 | #endif |
| 790 | return mtu > 0; |
| 791 | } |
| 792 | |
| 793 | bool IsInReservedRange (const boost::asio::ip::address& host) |
| 794 | { |
no test coverage detected