Skip to content

Commit 3eb3231

Browse files
committed
Add destination-client-type for browser based access
1 parent 2239209 commit 3eb3231

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/tunnel.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static void cleanup_tunnel_slot(TunnelCreationContext **ctx) {
3232
active_tunnels--;
3333
int slot = (int) (*ctx - tunnel_contexts);
3434
tunnel_slots_mask &= ~(1U << slot);
35+
GG_LOGI("Tunnel closed (active tunnels: %d)", active_tunnels);
3536
*ctx = NULL;
3637
}
3738
}
@@ -128,8 +129,10 @@ static void *tunnel_worker(void *arg) {
128129
}
129130

130131
// Prepare localproxy arguments (without access token)
131-
const char *args[] = { "localproxy", "-r", ctx->region, "-d",
132-
dest_addr, "-v", LOCALPROXY_LOG_LEVEL, NULL };
132+
const char *args[] = { "localproxy", "-r", ctx->region,
133+
"-d", dest_addr, "--destination-client-type",
134+
"V1", "-v", LOCALPROXY_LOG_LEVEL,
135+
NULL };
133136

134137
GG_LOGI(
135138
"Using localproxy for service: %s on port %u", ctx->service, ctx->port

0 commit comments

Comments
 (0)