aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2024-01-14 13:49:07 +0100
committercbdev <cb@cbcdn.com>2024-01-14 13:49:07 +0100
commit072cdf78d0f3362a3df7c6d7188bad29853b8d05 (patch)
treecadf4a22c3d265bdab061960ff4fdc687dd6ac80
parenta5dfbe9dcc41beee521546d2788a5ce57359151e (diff)
downloadwebsocksy-072cdf78d0f3362a3df7c6d7188bad29853b8d05.tar.gz
websocksy-072cdf78d0f3362a3df7c6d7188bad29853b8d05.tar.bz2
websocksy-072cdf78d0f3362a3df7c6d7188bad29853b8d05.zip
Host address termination
-rw-r--r--websocksy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocksy.c b/websocksy.c
index 208e9e6..b6310ce 100644
--- a/websocksy.c
+++ b/websocksy.c
@@ -103,7 +103,7 @@ static peer_transport client_detect_transport(char* host){
return peer_udp_client;
}
else if(!strncmp(host, "udp-listen://", 13)){
- memmove(host, host + 13, strlen(host) - 13);
+ memmove(host, host + 13, strlen(host) - 12);
return peer_udp_listen;
}
else if(!strncmp(host, "fifotx://", 9)){