aboutsummaryrefslogtreecommitdiff
path: root/src/ptunnel.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-01-28 23:53:41 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-01-28 23:53:41 +0100
commit596fee4002237651b741f1cef5f9d298423dbec7 (patch)
tree74b9d642b547f63c975319874e5e9f7e8cf2dc2b /src/ptunnel.c
parent0fcfc3a9acaff4d03ccf33fe411ab0bb441a0f41 (diff)
parent057bcf9b019c9aaec332d4a44eab93a991731a9a (diff)
Merge branch 'master' of ssh://github.com/lnslbrty/ptunnel-ng
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);
}