isayme / socks5 Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] socks5 proxy in c with the library libev.
License: MIT License
[Deprecated] socks5 proxy in c with the library libev.
License: MIT License
Hello,
what about using c-ares to resolve hostnames to ipv6/ipv4 rather than udns?
e.g. https://github.com/shadowsocks/shadowsocks-libev/blob/master/src/resolv.c
Thank you
我试过了,好像不行。要怎么设置才行?
first of all, great job - I have feeling that there was no other simple socks5 server using libev.
I see there are few issues with socks5_auth method, because it is synchronous and sometimes recv or send return -1 because they need more time. It could be resolved by doing proxy authentication also using libev asynchronously - I implemented it in in socks client version already: https://github.com/vavrecan/sniproxy/blob/master/src/connection.c#L216
how does the connection get closed - is there any timeout?
when doing a lot of requests
for i in `seq 1 50000`;
do
curl -v -x socks5h://127.0.0.1:1080 http://127.0.0.1:8080 &
done
the socks5_conn_close does not seems to be called and the memory grows with more requests.
hi.
root@AR:/socks5# ls/socks5# ls bin
bin inc makefile README.md src
root@AR:
root@AR:/socks5# make/socks5#
gcc src/liblog/liblog.c -g -DLINUX -shared -fPIC -Iinc -o liblog.so
mv liblog.so bin/
gcc src/libdaemon/libdaemon.c -g -DLINUX -shared -fPIC -Iinc -o libdaemon.so
mv libdaemon.so bin/
gcc src/libthread/libthread.c -g -DLINUX -shared -fPIC -Iinc -o libthread.so
mv libthread.so bin/
gcc src/libconfig/libconfig.c -g -DLINUX -shared -fPIC -Iinc -o libconfig.so
mv libconfig.so bin/
gcc src/socks5/socks5.c -g -Wall -O3 -DLINUX -Iinc -Wl,-rpath,bin,-rpath, -Lbin -lpthread -llog -ldaemon -lconfig -lev -lthread -o socks5
src/socks5/socks5.c:19:16: fatal error: ev.h: 没有那个文件或目录
compilation terminated.
make: *** [socks5] 错误 1
root@AR:
Hello. I noticed the -DLINUX compiler flag in the Makefile, so I'm assuming that this project does not target any other platforms. If that's correct, I think we should make it clear in the README.
is there anyway to implement Radius (Direct / PAM Radius) in this cool application ?
如果很多客户端断电,那事件注册了又不释放,不是白白浪费。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.