mirror of
https://github.com/znc/znc.git
synced 2026-05-04 04:22:37 +02:00
Merge rev 1016 from x-x
'only listen on local IP' git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@822 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
2
User.cpp
2
User.cpp
@@ -904,7 +904,7 @@ bool CUser::SendFile(const CString& sRemoteNick, const CString& sFileName, const
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned short uPort = CZNC::Get().GetManager().ListenAllRand("DCC::LISTEN::" + sRemoteNick, false, SOMAXCONN, pSock, 120);
|
||||
unsigned short uPort = CZNC::Get().GetManager().ListenRand("DCC::LISTEN::" + sRemoteNick, GetLocalIP(), false, SOMAXCONN, pSock, 120);
|
||||
|
||||
if (GetNick().CaseCmp(sRemoteNick) == 0) {
|
||||
PutUser(":" + GetStatusPrefix() + "status!znc@znc.com PRIVMSG " + sRemoteNick + " :\001DCC SEND " + pFile->GetShortName() + " " + CString(CUtils::GetLongIP(GetLocalIP())) + " "
|
||||
|
||||
Reference in New Issue
Block a user