Skip to content

Commit

Permalink
update ziti-sdk-c@main for now
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Feb 6, 2025
1 parent 3805db4 commit 1ab593f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)


set(ZITI_SDK_DIR "" CACHE FILEPATH "developer option: use local ziti-sdk-c checkout")
set(ZITI_SDK_VERSION "1.4.4" CACHE STRING "ziti-sdk-c version or branch to use")
set(ZITI_SDK_VERSION "main" CACHE STRING "ziti-sdk-c version or branch to use")

# if TUNNEL_SDK_ONLY then don't descend into programs/ziti-edge-tunnel
option(TUNNEL_SDK_ONLY "build only ziti-tunnel-sdk (without ziti)" OFF)
Expand Down
8 changes: 4 additions & 4 deletions lib/ziti-tunnel-cbs/ziti_hosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ static ziti_listen_opts DEFAULT_LISTEN_OPTS = {
.bind_using_edge_identity = false,
.identity = NULL,
.connect_timeout_seconds = 5,
.terminator_precedence = PRECEDENCE_DEFAULT,
.terminator_precedence = 0, // PRECEDENCE.DEFAULT,
.terminator_cost = 0,
};

Expand All @@ -779,11 +779,11 @@ static void listen_opts_from_host_cfg_v1(ziti_listen_opts *opts, const ziti_host
const char *prec = config->listen_options->precendence;
if (prec) {
if (strcmp(prec, "default") == 0) {
opts->terminator_precedence = PRECEDENCE_DEFAULT;
opts->terminator_precedence = PRECEDENCE.DEFAULT;
} else if (strcmp(prec, "required") == 0) {
opts->terminator_precedence = PRECEDENCE_REQUIRED;
opts->terminator_precedence = PRECEDENCE.REQUIRED;
} else if (strcmp(prec, "failed") == 0) {
opts->terminator_precedence = PRECEDENCE_FAILED;
opts->terminator_precedence = PRECEDENCE.FAILED;
} else {
ZITI_LOG(WARN, "unsupported terminator precedence '%s'", prec);
}
Expand Down

0 comments on commit 1ab593f

Please sign in to comment.