Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't overwrite ziti c-sdk refresh_rate option when setting tunneler options #1040

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ static int load_identity_cfg(const char *identifier, const ziti_config *cfg, boo
ziti_options opts = {
.api_page_size = api_page_size > 0 ? api_page_size : 0,
.disabled = disabled,
.refresh_interval = (long)refresh_interval
};
int rc = init_ziti_instance(inst, cfg, &opts);
if (rc != ZITI_OK) {
Expand Down Expand Up @@ -897,7 +898,6 @@ int set_tnlr_options(struct ziti_instance_s *inst) {
.config_types = cfg_types,
.event_cb = on_ziti_event, // ensure ziti events are propagated (as tunnel events) via the command interface
.events = -1,
.refresh_interval = (long)refresh_interval,
.app_ctx = inst
};
int rc = ziti_context_set_options(inst->ztx, &tunneler_ziti_options);
Expand Down
Loading