c->c2.tls_multi->peer_id = c->options.peer_id;
}
- /* process (potentially pushed) crypto options */
+ /* process (potentially) pushed options */
if (c->options.pull)
{
if (!check_pull_client_ncp(c, found))
{
return false;
}
- }
- /* Check if pushed options are compatible with DCO, if enabled */
- if (dco_enabled(&c->options)
- && !dco_check_pull_options(D_PUSH_ERRORS, &c->options))
- {
- msg(D_PUSH_ERRORS, "OPTIONS ERROR: pushed options are incompatible with "
- "data channel offload. Use --disable-dco to connect to this server");
- return false;
+ /* Check if pushed options are compatible with DCO, if enabled */
+ if (dco_enabled(&c->options)
+ && !dco_check_pull_options(D_PUSH_ERRORS, &c->options))
+ {
+ msg(D_PUSH_ERRORS, "OPTIONS ERROR: pushed options are incompatible "
+ "with data channel offload. Use --disable-dco to connect to "
+ "this server");
+ return false;
+ }
}
return true;