Ticket #322 (closed defect: fixed)

Opened 6 years ago

Last modified 12 months ago

configure socks5

Reported by: nobody Owned by: erijo
Priority: normal Milestone: 1.3.4
Component: build Version: 1.2.*
Keywords: Cc:

Description (last modified by erijo) (diff)

> ./configure --enable-socks5
...
checking whether to enable SOCKS5 support... yes
checking for SOCKSinit in -lsocks5... no
checking for SOCKSinit in -lsocks... no
checking for socks.h... no
...
SOCKS5 support is enabled.
...

> make

Making all in src
make[2]: Entering directory `/usr/local/src/apps/licq-1.2.0a/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include -DINSTALL_PREFIX="/usr/local" -Wno-implicit  -fPIC -DPIC 
-D_REENTRANT -I/usr/local/ssl/include/  -O2 -fno-exceptions -fno-check-new -c main.cpp
main.cpp:15: socks.h: No such file or directory

Change History

Changed 6 years ago by nobody

Logged In: NO

mmm. that should faild in the configuration?

Changed 2 years ago by erijo

  • owner set to erijo
  • status changed from new to assigned
  • description modified (diff)
  • milestone set to 1.3.4

Changed 2 years ago by erijo

  • status changed from assigned to closed
  • resolution changed from None to fixed

In [4463] this gives you: SOCKS5 support is disabled.

Changed 2 years ago by anonymous

  • priority changed from normal to lowest
  • type changed from defect to task
  • component changed from build to chat

// <!-- by jesse CClientReqSocketProxyfied::~CClientReqSocketProxyfied() {

CSingleLock sl(&theApp.listensocket->m_csProxy, TRUE); if (theApp.listensocket->m_pProxyAcceptSocket == this) {

theApp.listensocket->m_pProxyAcceptSocket = NULL; if (theApp.listensocket->bListening)

theApp.listensocket->ProxyListenNext?();

} delete m_pProxyLayer;

}

int CClientReqSocketProxyfied::OnLayerCallback?(const CAsyncSocketExLayer* pLayer, int nType, int nParam1, int nParam2) {

if (nType == LAYERCALLBACK_LAYERSPECIFIC) {

ASSERT( pLayer ); if (pLayer == m_pProxyLayer) {

switch (nParam1) {

case PROXYSTATUS_LISTENSOCKETCREATED:

if (((t_ListenSocketCreatedStruct*)nParam2)->nPort != htons(thePrefs.GetPort?())) {

AddLogLine?(false, _T("Listen socket: Bound on wrong port. Try to choose another tcp port.")); Safe_Delete();

} break;

default:

AddLogLine?(false, _T("Listen socket: Proxy server error - %s"), GetProxyError?(nParam1)); Safe_Delete();

}

}

} return 1;

}

void CClientReqSocketProxyfied::OnAccept?(int nErrorCode){

if (!nErrorCode){

theApp.listensocket->m_nPendingConnections++; ASSERT(theApp.listensocket->m_nPendingConnections == 1); if (theApp.listensocket->m_nPendingConnections < 1){

ASSERT ( false ); theApp.listensocket->m_nPendingConnections = 1;

} if (theApp.listensocket->TooManySockets?(true) && !theApp.serverconnect->IsConnecting?()){

theApp.listensocket->StopListening?(); return;

} else if ( theApp.listensocket->bListening == false )

theApp.listensocket->ReStartListening?(); //If the client is still at maxconnections, this will allow it to go above it.. But if you don't, you will get a lowID on all servers.

while( theApp.listensocket->m_nPendingConnections ) {

theApp.listensocket->m_nPendingConnections--; theApp.listensocket->AddConnection?();

CSingleLock sl(&theApp.listensocket->m_csProxy, TRUE);

SOCKADDR_IN SockAddr? = {0}; int iSockAddrLen = sizeof SockAddr?; GetPeerName?((SOCKADDR*)&SockAddr?, &iSockAddrLen);

ASSERT( SockAddr?.sin_addr.S_un.S_addr != 0 && SockAddr?.sin_addr.S_un.S_addr != INADDR_NONE );

if (theApp.ipfilter->IsFiltered?(SockAddr?.sin_addr.S_un.S_addr)){

if (thePrefs.GetLogFilteredIPs())

AddDebugLogLine?(false, _T("Rejecting connection attempt (IP=%s) - IP filter (%s)"), ipstr(SockAddr?.sin_addr.S_un.S_addr), theApp.ipfilter->GetLastHit?());

Safe_Delete(); theStats.filteredclients++; continue;

}

if (theApp.clientlist->IsBannedClient?(SockAddr?.sin_addr.S_un.S_addr)){

if (thePrefs.GetLogBannedClients?()){

CUpDownClient* pClient = theApp.clientlist->FindClientByIP(SockAddr?.sin_addr.S_un.S_addr); AddDebugLogLine?(false, _T("Rejecting connection attempt of banned client %s %s"), ipstr(SockAddr?.sin_addr.S_un.S_addr), pClient->DbgGetClientInfo?());

} Safe_Delete(); continue;

}

AsyncSelect?(FD_WRITE|FD_READ|FD_CLOSE);

theApp.listensocket->m_pProxyAcceptSocket = NULL; theApp.listensocket->ProxyListenNext?();

}

}

} // by jesse -->

Changed 2 years ago by erijo

  • priority changed from lowest to normal
  • type changed from task to defect
  • component changed from chat to build

que?

Changed 12 months ago by anonymous

  • milestone 1.3.4 deleted

Milestone 1.3.4 deleted

Changed 12 months ago by erijo

  • milestone set to 1.3.4
Note: See TracTickets for help on using tickets.