aboutsummaryrefslogtreecommitdiff
path: root/src/ptunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ptunnel.c')
-rw-r--r--src/ptunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index dde63d3..a8c0a40 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -385,7 +385,7 @@ void pt_forwarder(void) {
}
}
addr = dest_addr;
- rand_id = (uint16_t) pt_random();
+ rand_id = pt_random();
create_and_insert_proxy_desc(rand_id, rand_id, new_sock, &addr, opts.given_dst_ip, opts.given_dst_port, kProxy_start, kUser_flag);
pthread_mutex_unlock(&num_threads_lock);
}