Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5f2407a
Separate method for proxy scheme validation.
huoyaoyuan Feb 27, 2021
7a70c33
Pass socks connection kind.
huoyaoyuan Feb 27, 2021
d0aa8fc
Unauthorized socks5 connection.
huoyaoyuan Feb 28, 2021
b091355
Username and password auth.
huoyaoyuan Feb 28, 2021
98a1d12
Fix response address.
huoyaoyuan Feb 28, 2021
c4cdd8e
Fix proxyUri value and assertion.
huoyaoyuan Feb 28, 2021
b5e3701
Use HttpConnectionKind for SOCKS.
huoyaoyuan Mar 1, 2021
15b2a8f
Handle more connection kind assertions.
huoyaoyuan Mar 1, 2021
56bf28b
SOCKS4/4a support.
huoyaoyuan Mar 1, 2021
a2a80f7
Move version selection into SocksHelper.
huoyaoyuan Mar 1, 2021
1d7fa76
Call sync version of read write.
huoyaoyuan Mar 2, 2021
44cce2e
Cancellation by disposing stream.
huoyaoyuan Mar 2, 2021
140bbc1
Dispose cancellation registration.
huoyaoyuan Mar 3, 2021
694b869
IP addressing for SOCKS5.
huoyaoyuan Mar 3, 2021
e68224a
IP addressing for SOCKS4.
huoyaoyuan Mar 3, 2021
24e1e2d
Wrap write method.
huoyaoyuan Mar 3, 2021
d1a8eae
Cancellation and optimization.
huoyaoyuan Mar 3, 2021
7836231
Optimize.
huoyaoyuan Mar 4, 2021
da3ef58
Apply suggestions from code review
huoyaoyuan Mar 4, 2021
7371407
Clarify logic.
huoyaoyuan Mar 4, 2021
c007769
Remove ssl assertion.
huoyaoyuan Mar 4, 2021
0517a87
SocksException.
huoyaoyuan Mar 4, 2021
ca9babe
Make SocksException derive from IOException.
huoyaoyuan Mar 6, 2021
50a723a
Use binary primitives to write port in BE.
huoyaoyuan Mar 11, 2021
3b6eb5f
Socks loopback test.
huoyaoyuan Mar 11, 2021
4882181
Expand test matrix.
huoyaoyuan Mar 11, 2021
5d21f2b
Try to solve certificate issue.
huoyaoyuan Mar 11, 2021
5ef161c
Pass handler to httpclient.
huoyaoyuan Mar 16, 2021
2df3d41
Merge branch 'main' into socks-proxy
huoyaoyuan Mar 16, 2021
87ef694
Update ConnectToTcpHostAsync.
huoyaoyuan Mar 16, 2021
4462be5
Merge branch 'main' into socks-proxy
MihaZupan Mar 24, 2021
b487d1f
Remove custom self-signed cert use from Socks test
MihaZupan Mar 24, 2021
de78efc
Fix LoopbackSocksServer's parsing of Socks4a domain name
MihaZupan Mar 24, 2021
df1d77f
Only set RequestVersionExact for H2C
MihaZupan Mar 24, 2021
f9465b5
Merge branch 'main' into socks-proxy
MihaZupan Apr 6, 2021
ee02582
Add auth test.
huoyaoyuan Apr 7, 2021
efc32b8
Add IP in test matrix.
huoyaoyuan Apr 7, 2021
ddb2f8d
Only override host when required.
huoyaoyuan Apr 7, 2021
e30ee4e
Don't attempt NT Auth for Socks proxies
MihaZupan Apr 7, 2021
7b68507
Skip HTTP2 ssl test on platforms without ALPN support
MihaZupan Apr 7, 2021
dfb737c
Use NetworkCredential directly
MihaZupan Apr 7, 2021
1bd2c0e
Pass AddressFamily to sync Dns resolution too
MihaZupan Apr 7, 2021
5c26033
Consistently check encoded string lengths
MihaZupan Apr 7, 2021
1308e14
Fix Socks5 user/pass auth
MihaZupan Apr 7, 2021
76b61ce
Add IPv6 test for socks5
MihaZupan Apr 7, 2021
54bde51
Exception nits
MihaZupan Apr 7, 2021
4d7a545
Add exceptional tests.
huoyaoyuan Apr 8, 2021
7a7bae0
Merge branch 'main'
huoyaoyuan Apr 12, 2021
1e5cde4
Fix exceptional test.
huoyaoyuan Apr 12, 2021
8bbb9e8
Fix NRT compilation
huoyaoyuan Apr 13, 2021
32a36b5
Server shouldn't wait for request in exceptional test.
huoyaoyuan Apr 15, 2021
9ed3686
Add exception message to test.
huoyaoyuan Apr 15, 2021
e70eb62
Update auth failure handling.
huoyaoyuan Apr 15, 2021
c79979c
SOCKS4 and 5 uses different auth model, requires different error mess…
huoyaoyuan Apr 15, 2021
bca15fa
Revert accidental indent change.
huoyaoyuan Apr 15, 2021
0ae546d
Expand test matrix to include Sync HTTP1
MihaZupan Apr 15, 2021
b06f145
Read received bytes before returning error response in Socks4 loopback
MihaZupan Apr 16, 2021
7f20191
Use named bool arguments
MihaZupan Apr 16, 2021
2ff779a
Improve exception messages
MihaZupan Apr 16, 2021
c08e717
!IsEmpty => Length != 0
MihaZupan Apr 16, 2021
52df362
Improve exception messages 2
MihaZupan Apr 16, 2021
95400e2
Avoid enforing Socks4 VN value
MihaZupan Apr 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ConnectToTcpHostAsync.
  • Loading branch information
huoyaoyuan committed Mar 16, 2021
commit 87ef694c3abf79d943777a200e56eaa06c2baf43
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ public ValueTask<HttpResponseMessage> SendAsync(HttpRequestMessage request, bool
case HttpConnectionKind.SslSocksTunnel:
Debug.Assert(_originAuthority != null);
Debug.Assert(_proxyUri != null);
stream = await ConnectToTcpHostAsync(_proxyUri.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false);
(socket, stream) = await ConnectToTcpHostAsync(_proxyUri.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false);
await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.Port, _proxyUri, ProxyCredentials, async, cancellationToken).ConfigureAwait(false);
break;
}
Expand Down