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

copy all members of ziti_options #582

Merged
merged 1 commit into from
Dec 5, 2023
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: 2 additions & 0 deletions library/ziti.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
printer(ctx, "\n=================\nZiti Context:\n");
printer(ctx, "ID:\t%d\n", ztx->id);
printer(ctx, "Enabled:\t%s\n", ziti_is_enabled(ztx) ? "true" : "false");
printer(ctx, "Config:\t%s\n", ztx->opts.config);

Check warning on line 627 in library/ziti.c

View workflow job for this annotation

GitHub Actions / MacOS x86_64

'config' is deprecated: ignored, will be removed [-Wdeprecated-declarations]
printer(ctx, "Controller:\t%s\n", ztx_controller(ztx));
printer(ctx, "Config types:\n");
for (int i = 0; ztx->opts.config_types && ztx->opts.config_types[i]; i++) {
Expand Down Expand Up @@ -1841,8 +1841,10 @@
} else {
#define copy_opt(f) if (options->f != 0) ztx->opts.f = options->f

copy_opt(disabled);
copy_opt(config_types);
copy_opt(refresh_interval);
copy_opt(metrics_type);
copy_opt(api_page_size);
copy_opt(event_cb);
copy_opt(events);
Expand Down
Loading