Mule 驢子是許多人喜愛的下載工具之一, 個人喜歡它的原因就是能抓到一些過時的資料動畫、電子書、無損音樂、教學影片還有一大堆在BT下很難找到的資源很多都能在驢子的資源網裡找到, 但是愛用Mule下載的使用者應該都聽過這個名詞 吸血驢或是吸血騾, 就是只下載不上傳的不然就是上載下載很小的, 如果想知道更多有關吸血驢的資訊可以到Google或是百度查詢一下會有一堆... 這兒就只貼wiki的解釋了
而其中迅雷被大多數用戶認為是強力的吸血驢, 至於為什麼可以到網上找一下...為了防止這類的吸血驢影響eDonkey的網路, 所以出現了多種反吸血的保護, 其中一個技術就是DLP (動態吸血保護), 在Windows下已經有很多支援該DLP的驢子軟體, 而aMule是在Linux下可以支援Mule的工具之一, 很高興的事有熱心的大大們將DLP技術移植到amule上, 這個專案叫amule-dlp可以在google code找到。
小弟是在BCM4780 NAS上跑驢子的, 因為平常大都一直開著沒關機...既然就開著了就想先把資源給分享同時也在辛苦上傳的驢子用戶而不很大多數的吸血驢, 所以就抓了這個amule-dlp自己編譯一下, 雖然過程中出現莫明的錯誤...
....
Compiling BaseClient.cpp
antiLeech.cpp: In member function ‘const wxChar* CantiLeech::DLPCheckNameAndHashAndMod(CString, CString&, CString&)’:
antiLeech.cpp:1207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/wx-2.8/wx/string.h:1423: note: candidate 1: wxString operator+(wxChar, const wxString&)
CString_wx.h:20: note: candidate 2: CString operator+(const CString&, const CString&)
antiLeech.cpp:1207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/wx-2.8/wx/string.h:1423: note: candidate 1: wxString operator+(wxChar, const wxString&)
CString_wx.h:20: note: candidate 2: CString operator+(const CString&, const CString&)
make[3]: *** [amule-BaseClient.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
後來找到一個可行的方法, 修改 src/CString_wx.h 檔案把以下這行
friend CString operator+(const CString& str1, const CString& str2){
換成
friend CString operator+(const wxString(str1), const wxString(str2)){
之後再編譯就成功了^Q^ (雖然是不是正解...), 接著便之執行與測試了...試驗過一段時間後發現反吸血驢的效果還不錯大約都能擋約25~70%, 剩下能連的大都是一般被認可的驢子下載程式了... 以下截圖為Web管理中的一小部份..僅供參考 :D

從aMule Remote GUI 看的結果

說到簡易安裝我也已經做好deb套件包了, 雖然不是那麼的smart...
安裝方法:
1. 更新debian-bcm47xx的apt
apt-get update
2. 先移除原本的amule 套件, 因為有支援dlp的amule被命令成amule-dlp會跟原來的相衝 (sorry...我還不知道怎麼做讓它自動反安裝...)
apt-get remove amule
dpkg -r amule (也可以)
3. 安裝amule-dlp套件
apt-get install amule-dlp
4. 完成, 接下來可以評估是否需要修改amule.conf檔, 如果原本已使用過amule可以直接執行
amuled &
參考資料: