Skip to content

Commit

Permalink
Possibly fix mingw compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Nov 3, 2019
1 parent 5889b2c commit 7e7782f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edge_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ static int edge_init_sockets(n2n_edge_t *eee, int udp_local_port, int mgmt_port,
traceEvent(TRACE_ERROR, "Could not set TOS 0x%x[%d]: %s", tos, errno, strerror(errno));
}

#ifndef __APPLE__
#ifdef IP_PMTUDISC_DO
sockopt = (eee->conf.disable_pmtu_discovery) ? IP_PMTUDISC_DONT : IP_PMTUDISC_DO;

if(setsockopt(eee->udp_sock, IPPROTO_IP, IP_MTU_DISCOVER, &sockopt, sizeof(sockopt)) < 0)
Expand Down

0 comments on commit 7e7782f

Please sign in to comment.