Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111168

QHostAddress::isGlobal returning true for local network addresses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.4.2
    • Network
    • None

      QHostAddress::isGlobal returns true for local network addresses, such as QHostAddress("192.168.0.1").isGlobal() which returns true.

       

      Although I understand that this behavior is implemented according to the description in RFC 4193 section 1, I find it not intuitive.

      Generally, "global" means "not local", and it would be better if the function returned false for IPv6 unique local unicast addresses and IPv4 private addresses.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            manordheim Mårten Nordheim
            ayamamoto Atsushi Yamamoto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes