Student Main
23ce58aa34
Tweak debug message out levels
6 years ago
celeron533
84c55d116d
WIP: Migrate to NLog
6 years ago
rickryo
0d6c8bd0bc
add "basic access authentication" support for http proxy
7 years ago
celeron533
63282a4c8d
Update user-agent
7 years ago
noisyfox
28954600a2
Revert "Rename Shadowsocks.Proxy -> Shadowsocks.ForwardProxy"
This reverts commit be3cc3f3a6 .
9 years ago
noisyfox
be3cc3f3a6
Rename Shadowsocks.Proxy -> Shadowsocks.ForwardProxy
9 years ago
Syrone Wong
d5f24df128
Don't suppress exceptions
It is better to log them.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
Noisyfox
4acae9de9b
Fix a bug that the callback will be invoked twice if http proxy request failed. ( #751 )
9 years ago
Noisyfox
35fc73b58b
Add HTTP proxy support in forward proxy ( #745 )
* Add HTTP proxy support in forward proxy
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
* Typo
* Throw exception if forward proxy not supported.
9 years ago
noisyfox
05063f074a
Fix an issue that the socket may not be released.
- New wrapper to handle tcp socket connection.
- Fix some memory leak.
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
noisyfox
f676d2185e
Use Socket.ConnectAsync instead of socket.BeginConnect.
Socket.ConnectAsync will create socket and handle the address family
itself. This solves some compatibility issues on win7.
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
noisyfox
53ce1948e4
Unified ipv4, ipv6 and domain connections.
-Use dual-mode socket & DnsEndPoint to handle all domain name connection.
-Move all socket creation into one single function.
So that we could treat domain name just like ipv4 & ipv6 address.
This also solves the async domain solving problem because the os will
hanlde it for us.
9 years ago
noisyfox
ad15c7e64b
Improve host address handling using DnsEndPoint
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
noisyfox
aef88543d2
Fix typo
Update translate
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
noisyfox
22740c5102
Let Socks5 proxy handle server host's domain name.
Don't resolve it locally because socks5 support domain name connection.
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
noisyfox
a02cd11dc9
Let proxy module handle name resolving itself.
Fix wrong output in proxyConnectTimer_Elapsed.
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
9 years ago
Syrone Wong
a9af9fdfc0
Refactor
- use null conditional access in case some connections been
cancelled unexpectedly and may cause null reference exception
- Refine error message
- use conditional operator to simplify some code
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
noisyfox
9493f93c0f
Add Socks5 Proxy
10 years ago
noisyfox
95d4e3a0c0
Add proxy support
10 years ago