Skip to content

Commit 74ad2d0

Browse files
committed
fix bug in function 'handle_bind_request' due to typo
1 parent cfbbd40 commit 74ad2d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class tcp_binding : public std::enable_shared_from_this<tcp_binding>
232232
reply_size = socks_header_ipv4_size;
233233
reply[3] = socks_atyp_ipv4;
234234
asio::ip::address_v4::bytes_type v4_bytes = remote_address.to_v4().to_bytes();
235-
*(uint32_t *)v4_bytes.data() = *(uint32_t *)(reply.data() + 4);
235+
*(uint32_t *)(reply.data() + 4) = *(uint32_t *)v4_bytes.data();
236236
*(uint16_t *)(reply.data() + 8) = htons(remote_port);
237237
}
238238

0 commit comments

Comments
 (0)