File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18564,8 +18564,6 @@ determine_service() {
1856418564 ftp|smtp|lmtp|pop3|imap|xmpp|telnet|ldap|postgres|mysql|nntp)
1856518565 STARTTLS="-starttls $protocol"
1856618566 if [[ "$protocol" == xmpp ]]; then
18567- # for XMPP, openssl has a problem using -connect $NODEIP:$PORT. thus we use -connect $NODE:$PORT instead!
18568- NODEIP="$NODE"
1856918567 if [[ -n "$XMPP_HOST" ]]; then
1857018568 if ! "$HAS_XMPP"; then
1857118569 fatal "Your $OPENSSL does not support the \"-xmpphost\" option" $ERR_OSSLBIN
@@ -18579,11 +18577,18 @@ determine_service() {
1857918577 prln_warning " IP address doesn't work for XMPP, trying PTR record $rDNS"
1858018578 # remove trailing .
1858118579 NODE=${rDNS%%.}
18582- NODEIP=${rDNS%%.}
1858318580 else
1858418581 fatal "No DNS supplied and no PTR record available which I can try for XMPP" $ERR_DNSLOOKUP
1858518582 fi
1858618583 fi
18584+ if "$HAS_XMPP"; then
18585+ # small hack -- instead of changing calls all over the place
18586+ STARTTLS="$STARTTLS -xmpphost $NODE"
18587+ else
18588+ # If the XMPP name cannot be provided using -xmpphost,
18589+ # then it needs to be provided to the -connect option
18590+ NODEIP="$NODE"
18591+ fi
1858718592 fi
1858818593 elif [[ "$protocol" == postgres ]]; then
1858918594 # Check if openssl version supports postgres.
You can’t perform that action at this time.
0 commit comments