How do you determine equality between two IPv6 addresses?

后端 未结 4 1772
误落风尘
误落风尘 2020-12-28 19:05

I have an application that allows administrators to specify valid IP addresses from which web service requests can be made. I simply take the configured IP addresses and co

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 19:33

    IPv6 is just a 128-bit versus 32-bit in IPv4; you should just be able to do a byte by byte comparison.

提交回复
热议问题