This fixes using ssl to check if we are using dtls or not, when ssl is not yet valid. Fix: 060dfe1a69
060dfe1a69