this->mode = MODE_TUNNEL;
DBG1(DBG_IKE, "not using transport mode, not host-to-host");
}
+ if (this->config->get_mode(this->config) != MODE_TRANSPORT)
+ {
+ this->mode = MODE_TUNNEL;
+ }
break;
case MODE_BEET:
if (!ts_list_is_host(this->tsi, NULL) ||
this->mode = MODE_TUNNEL;
DBG1(DBG_IKE, "not using BEET mode, not host-to-host");
}
+ if (this->config->get_mode(this->config) != MODE_BEET)
+ {
+ this->mode = MODE_TUNNEL;
+ }
break;
default:
break;
return SUCCESS;
}
- this->mode = this->config->get_mode(this->config);
-
/* check if ike_config_t included non-critical error notifies */
enumerator = message->create_payload_enumerator(message);
while (enumerator->enumerate(enumerator, &payload))