Changeset 8570


Ignore:
Timestamp:
03/24/13 20:02:53 (8 years ago)
Author:
gf
Message:

Disable local binding when IPv6 is enabled.

Patch by manio posted in ticket #3206.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-reader.c

    r8515 r8570  
    242242    if (!rdr) return -1;
    243243    struct s_client *client = rdr->client;
    244     struct sockaddr_in loc_sa;
    245 
    246244    memset((char *)&client->udp_sa, 0, sizeof(client->udp_sa));
    247245
     
    293291    setsockopt(client->udp_fd, IPPROTO_TCP, TCP_NODELAY, (void *)&flag, sizeof(flag));
    294292
     293#ifndef IPV6SUPPORT
     294    struct sockaddr_in loc_sa;
    295295    memset((char *)&loc_sa,0,sizeof(loc_sa));
    296296    loc_sa.sin_family = AF_INET;
     
    309309        return -1;
    310310    }
     311#endif
    311312
    312313#ifdef IPV6SUPPORT
Note: See TracChangeset for help on using the changeset viewer.