diff options
Diffstat (limited to 'src/rexmpp_tcp.c')
-rw-r--r-- | src/rexmpp_tcp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rexmpp_tcp.c b/src/rexmpp_tcp.c index a9c5547..c6a53a5 100644 --- a/src/rexmpp_tcp.c +++ b/src/rexmpp_tcp.c @@ -106,10 +106,9 @@ int rexmpp_tcp_socket(rexmpp_t *s, int domain) { int flags = fcntl(sock, F_GETFL, 0); fcntl(sock, F_SETFL, flags | O_NONBLOCK); - /* Set path MTU discovery, if provided */ - if (s->path_mtu_discovery != -1) { - setsockopt(sock, SOL_IP, IP_MTU_DISCOVER, &(s->path_mtu_discovery), - sizeof(s->path_mtu_discovery)); + /* Call the socket creation callback, if provided */ + if (s->socket_cb != NULL) { + s->socket_cb(s, sock); } return sock; |