mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-02-01 07:00:36 +03:00
seg2delay
This commit is contained in:
@@ -165,7 +165,7 @@ out:
|
||||
int send_tcp_frags(const struct section_config_t *section, const uint8_t *packet, size_t pktlen, const size_t *poses, size_t poses_sz, size_t dvs) {
|
||||
if (poses_sz == 0) {
|
||||
lgtrace_addp("raw send packet of %zu bytes with %zu dvs", pktlen, dvs);
|
||||
if (section->seg2_delay && ((dvs > 0) ^ section->frag_sni_reverse)) {
|
||||
if (section->seg2_delay) {// && ((dvs > 0) ^ section->frag_sni_reverse)) {
|
||||
return instance_config.send_delayed_packet(
|
||||
packet, pktlen, section->seg2_delay);
|
||||
} else {
|
||||
|
||||
@@ -225,7 +225,7 @@ static int send_raw_ipv4(const uint8_t *pkt, size_t pktlen) {
|
||||
pthread_mutex_lock(&rawsocket_lock);
|
||||
|
||||
int sent = sendto(rawsocket,
|
||||
pkt, pktlen, 0,
|
||||
pkt, pktlen, MSG_DONTWAIT,
|
||||
(struct sockaddr *)&daddr, sizeof(daddr));
|
||||
|
||||
if (cur_config->threads != 1)
|
||||
@@ -260,7 +260,7 @@ static int send_raw_ipv6(const uint8_t *pkt, size_t pktlen) {
|
||||
pthread_mutex_lock(&rawsocket_lock);
|
||||
|
||||
int sent = sendto(raw6socket,
|
||||
pkt, pktlen, 0,
|
||||
pkt, pktlen, MSG_DONTWAIT,
|
||||
(struct sockaddr *)&daddr, sizeof(daddr));
|
||||
|
||||
lgtrace_addp("rawsocket sent %d", sent);
|
||||
|
||||
Reference in New Issue
Block a user