Skip to content

Commit

Permalink
Merge pull request #233 from openziti/tunneler-1.2.0
Browse files Browse the repository at this point in the history
update tunneler SDK v1.2.0
  • Loading branch information
ekoby authored Oct 10, 2024
2 parents adc0d02 + a43df24 commit 835a867
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android = "8.7.0"
kotlin = "2.0.20"

# ziti projects
ziti-tunnel-sdk = "2.0.0-alpha27"
ziti-tunnel-sdk = "1.2.0"

# 3rd part deps
kotlinx-serialization-json = "1.7.3"
Expand Down
8 changes: 6 additions & 2 deletions tunnel/src/main/cpp/netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ static void netif_read(uv_stream_t *, ssize_t len, const uv_buf_t *b) {
}

jdouble JNICALL get_up_rate(JNIEnv *, jobject) {
return metrics_rate_get(&NETIF.up);
double up = 0.0;
metrics_rate_get(&NETIF.up, &up);
return up;
}
jdouble JNICALL get_down_rate(JNIEnv *, jobject) {
return metrics_rate_get(&NETIF.down);
double down = 0.0;
metrics_rate_get(&NETIF.down, &down);
return down;
}

extern int android_netif_do(netif_cmd cmd, int fd) {
Expand Down
2 changes: 1 addition & 1 deletion tunnel/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"json-c"
],
"overrides": [],
"builtin-baseline": "1de2026f28ead93ff1773e6e680387643e914ea1"
"builtin-baseline": "c82f74667287d3dc386bce81e44964370c91a289"
}

0 comments on commit 835a867

Please sign in to comment.