jsakamoto / ipaddressrange

.NET Class Library for range of IP address, both IPv4 and IPv6.
Mozilla Public License 2.0
368 stars 71 forks source link

Add another kind of range, i.e. X.Y.Z.A-B #33

Closed konrad-kruczynski closed 6 years ago

konrad-kruczynski commented 6 years ago

Such range would effectively mean X.Y.Z.A-X.Y.Z.B.

What do you think?

jsakamoto commented 6 years ago

This short hand is fun! 👍

However, implementing this syntax support may be not as simple as I thought.
(For example, how to treat "192.168.0.12-3.45"? It should be reject? or convert to 192.168.0.12 - 192.168.3.45? etc...)

Therefore I guess that implementation cost efficiency will be worse.

I will consider it if anyone send to me a pull request of this syntax support. 😄

jsakamoto commented 6 years ago

Thank you @konrad-kruczynski for you PR #34.

I merged it (and add fix very very small bugs), and published new release.

Thanks.