Source: A manga reader app (Mihon) that sources content (via user-added apps) from various sites (here: WeebCentral.com)

  • thelittleblackbird@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    As far as I recall the official notion is with square brackets, to avoid exactly this confusion.

    But nobody uses it, to be honest

    • Scoopta@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      It’s only official for URIs, outside of URIs there is no official notation because there is no official notation for ports. :port is also a URI thing so while you’ll find a lot of software using URI syntax or something similar it’s the wild west when URIs aren’t in use

    • dysprosium@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      Can it actually be ambiguous though? If not, we should adopt this standard instead. It’s so annoying adding the square bracket

          • Scoopta@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            It is ambiguous. See this which could be either an address or address + port. 2001:db8:1::2:443

            That is a valid address…expanded it would be 2001:db8:1:0:0:0:2:443 …but oh no, the intent was for it to be 2001:db8:1:0:0:0:0:2 with port 443…but you’d never know