We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3b4d77 commit c8acb46Copy full SHA for c8acb46
src/handle_connect.c
@@ -1248,7 +1248,8 @@ int handle__connect(struct mosquitto *context)
1248
}
1249
}else{
1250
#ifdef WITH_TLS
1251
- if(context->listener->ssl_ctx && (context->listener->use_identity_as_username || context->listener->use_subject_as_username)){
+ if((context->listener->ssl_ctx || context->listener->enable_proxy_protocol > 0)
1252
+ && (context->listener->use_identity_as_username || context->listener->use_subject_as_username)){
1253
/* Authentication assumed to be cleared */
1254
}else
1255
#endif
0 commit comments