Skip to content

Commit b9a4ab4

Browse files
committed
pull latest ziti c-sdk
1 parent e79ac08 commit b9a4ab4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deps/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include(FetchContent)
22

33
FetchContent_Declare(ziti-sdk-c
44
GIT_REPOSITORY https://github.com/openziti/ziti-sdk-c.git
5-
GIT_TAG 0.16.6
5+
GIT_TAG 0.17.2
66
)
77
set(ZITI_BUILD_TESTS off)
88
set(ZITI_BUILD_PROGRAMS off)

programs/ziti-edge-tunnel/ziti-edge-tunnel.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ static ziti_options OPTS = {
3030
void on_service(ziti_context ziti_ctx, ziti_service *service, int status, void *tnlr_ctx) {
3131
if (status == ZITI_OK) {
3232
if (service->perm_flags & ZITI_CAN_DIAL) {
33-
ziti_intercept v1_config;
33+
ziti_client_cfg_v1 v1_config;
3434
int get_config_rc;
35-
get_config_rc = ziti_service_get_config(service, "ziti-tunneler-client.v1", &v1_config, parse_ziti_intercept);
35+
get_config_rc = ziti_service_get_config(service, "ziti-tunneler-client.v1", &v1_config, parse_ziti_client_cfg_v1);
3636
if (get_config_rc == 0) {
3737
ZITI_LOG(INFO, "service_available: %s => %s:%d", service->name, v1_config.hostname, v1_config.port);
3838
ziti_tunneler_intercept_v1(tnlr_ctx, ziti_ctx, service->id, service->name, v1_config.hostname, v1_config.port);
39-
free_ziti_intercept(&v1_config);
39+
free_ziti_client_cfg_v1(&v1_config);
4040
} else {
4141
ZITI_LOG(INFO, "service %s lacks ziti-tunneler-client.v1 config; not intercepting", service->name);
4242
}

0 commit comments

Comments
 (0)