Ticket #18100: 0001-trans_tproxy.patch

File 0001-trans_tproxy.patch, 557 bytes (added by d4fq0fQAgoJ, 5 months ago)
  • src/or/connection_edge.c

    old new  
    19101910  socklen_t orig_dst_len = sizeof(orig_dst);
    19111911  tor_addr_t addr;
    19121912
    1913 #ifdef TRANS_TRPOXY
    1914   if (options->TransProxyType_parsed == TPT_TPROXY) {
     1913#ifdef TRANS_TPROXY
     1914  if (get_options()->TransProxyType_parsed == TPT_TPROXY) {
    19151915    if (getsockname(ENTRY_TO_CONN(conn)->s, (struct sockaddr*)&orig_dst,
    19161916                    &orig_dst_len) < 0) {
    19171917      int e = tor_socket_errno(ENTRY_TO_CONN(conn)->s);