Uploaded image for project: 'Smack'
  1. Smack
  2. SMACK-813

Smack uses hostname instead of XMPP service name for SNI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.2.4
    • Component/s: TCP
    • Labels:

      Description

      Probably simply a matter of replacing

       

      // Secure the plain connection
       socket = context.getSocketFactory().createSocket(plain,
       host, plain.getPort(), true);

       

      with

       

      // Secure the plain connection
       socket = context.getSocketFactory().createSocket(plain,
       config.getXMPPServiceDomain().toString(), plain.getPort(), true);

        Attachments

          Activity

            People

            • Assignee:
              flow Florian Schmaus
              Reporter:
              flow Florian Schmaus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: