zonyitoo
a807cd307b
crypto2 requires unstable simd and asm featurs, we have to build with nightly
2020-11-21 22:18:50 +08:00
zonyitoo
536a2d5799
Build on action with mostly features enabled
2020-11-21 22:03:00 +08:00
zonyitoo
e9366e1236
strum is still required for RedirType
2020-11-21 14:07:16 +08:00
zonyitoo
52e16a1f5b
Add table and tick Rust crypto TODO
2020-11-21 13:59:35 +08:00
zonyitoo
050512d20d
Remove target-cpu=native in default build profile
2020-11-21 13:49:46 +08:00
zonyitoo
855fae6220
Indirect dependent to shadowsocks_crypto, reformatted
2020-11-21 13:38:02 +08:00
zonyitoo
d11a162893
Republic shadowsocks_crypto as crypto mod, set available_ciphers
2020-11-21 13:18:39 +08:00
zonyitoo
eef5fa2096
Updated hyper upgrade API
2020-11-21 12:08:01 +08:00
luozijun
c550913247
Add shadowsocks-crypto
2020-11-21 10:42:56 +08:00
zonyitoo
1758313447
"dns" key is only work for trust-dns feature
2020-11-15 21:16:24 +08:00
zonyitoo
5e428b84de
DNS UDP listener sleep 1s if error occurs
2020-11-15 17:01:22 +08:00
zonyitoo
b0c35eacf2
Fixed remote query log
2020-11-15 16:57:16 +08:00
zonyitoo
174e50e18e
UDP associations sending response directly to socket instead of channel
2020-11-15 15:55:58 +08:00
zonyitoo
5bf36c9ef9
UDP related servers get compatible with recv errors (mostly fd exhausted)
...
- DNS relay server parse request after tokio::spawn
2020-11-15 14:23:21 +08:00
zonyitoo
782da57064
DNS debug log shouldn't print LOCAL and REMOTE everytime
2020-11-15 14:23:21 +08:00
zonyitoo
7572430e14
Send DNS queries sequentially, UDP then TCP
2020-11-15 14:23:21 +08:00
zonyitoo
fd952cac37
fix #318 , impl From<&str> for LocalDnsAddr
2020-11-15 14:23:21 +08:00
zonyitoo
d1d8f72129
Fixed bug, ring AEAD cipher check output.len() shouldn't use equal
2020-11-15 14:23:21 +08:00
zonyitoo
b085122193
fix #318
2020-11-15 14:23:21 +08:00
zonyitoo
b78d1f56bf
Optimized DNS debug log
2020-11-15 14:23:21 +08:00
zonyitoo
2d533e0592
ProxyUpstream sending queries with both TCP & UDP if possible
2020-11-15 14:23:21 +08:00
zonyitoo
cf094ca59b
Add back local-dns-relay feature for backward compat
2020-11-15 14:23:21 +08:00
zonyitoo
91979ec1d9
DNS relay server supports sending in both TCP & UDP (Local + Remote)
2020-11-15 14:23:21 +08:00
zonyitoo
beb1fab9f2
Initialize local dns only of local_dns_addr present
2020-11-15 14:23:21 +08:00
zonyitoo
19d3129cd0
Fixed sslocal dns-addr local-dns-addr and remote-dns-addr requirements
2020-11-15 14:23:21 +08:00
zonyitoo
ca7958b0f1
DNS relay upstream can support both unix socket and udp
2020-11-15 14:23:21 +08:00
zonyitoo
7638140f20
DNS relay outbound socket should also set SO_MARK
...
- Pass Context reference to UpStream trait for protect() and fwmark
2020-11-15 14:23:21 +08:00
zonyitoo
5269e59d7e
Refine local DNS relay configurations
...
- Renamed local-dns-relay feature to local-dns
- sslocal DNS relay cmd options become --dns-addr --local-dns-addr --remote-dns-addr
- sslocal accepts --protocol dns to start standalone DNS resolver
- Hide local-tunnel specific configuration fields if feature disabled
2020-11-15 14:23:21 +08:00
zonyitoo
f2ac8af931
Reserve encrypt/decrypt buffers when needed
2020-11-15 14:23:21 +08:00
zonyitoo
e6e526b0b5
trust-dns works with tokio 0.3
...
- extends "dns" config field to ResolverConfig
2020-11-15 14:23:21 +08:00
zonyitoo
2645d5c818
UdpSocket::as_raw_socket (Windows) is now public
...
- UdpSocket::from_std won't set non-blocking flags
- ref tokio-rs/tokio#3084
2020-11-15 14:23:21 +08:00
zonyitoo
78853d3705
Tests should enable all logging output
2020-11-15 14:23:21 +08:00
zonyitoo
3223ff16c9
Add DNS, HTTP, Socks4/4a tests
2020-11-15 14:23:21 +08:00
zonyitoo
f43ee3e958
Test UDP connectivity with firefox.com DNS query
2020-11-15 14:23:21 +08:00
zonyitoo
6ca52c6d60
Linux redir compatible
2020-11-15 14:23:21 +08:00
zonyitoo
0ac7feb693
Make uds compatible with tokio3
2020-11-15 14:23:21 +08:00
zonyitoo
2f3a6d34bf
Deps to hyper and tower dev branch
2020-11-15 14:23:21 +08:00
zonyitoo
08d0871742
Support SIP008 extend server fields server, server_port, remarks
2020-11-15 14:23:21 +08:00
zonyitoo
8c9a024967
Add Socks5 UDP client, fixed compiler warnings
...
- Temporary disable default feature trust-dns, local-http-rustls
2020-11-15 14:23:21 +08:00
zonyitoo
50362bf227
Compat tokio v0.3 AsyncRead and other changes
...
- AsyncRead's ReadBuf API changes
- TcpStream::connect_std replaced by TcpSocket
- UdpSocket::split replaced by Arc<UdpSocket>
- Child's id() returns Option<u32> and doesn't impl Future anymore
- mio-uds have been deprecated, features are merged into mio
ref #301
2020-11-15 14:23:21 +08:00
zonyitoo
d6e2cee019
Renamed create_udp_socket_with_context to create_outbound_udp_socket for more precise meaning
2020-11-08 15:58:15 +08:00
zonyitoo
93365e8b51
Set SO_MARK on Linux for outbound UDP sockets
2020-11-08 15:51:25 +08:00
zonyitoo
90a4be9753
Set IPV6_BINDANY and SO_BINDANY on SOL_SOCKET properly
2020-11-07 12:35:20 +08:00
zonyitoo
8805e9fb84
Suppress warning of unused_mut
2020-11-07 12:35:20 +08:00
zonyitoo
e8292e5146
[ #303 ] Hide client errors into debug level
2020-11-07 00:25:55 +08:00
Feng Yu
b501ec6fd5
Fix #311 . Fix mips and mipsel build
2020-11-04 21:13:34 +08:00
zonyitoo
f086abfb87
Support setting SO_MARK on Linux
2020-11-03 19:36:24 +08:00
zonyitoo
8b313a2d5d
Master is now v1.8.24
2020-11-03 01:51:09 +08:00
zonyitoo
2a6451f0fe
UDP socket should set different IP_TRANSPARENT and IPV6_TRANSPARENT
v1.8.23
2020-11-03 01:17:47 +08:00
zonyitoo
a4d684c81d
Fixed IPv6 TProxy listener option: IPV6_TRANSPARENT
2020-11-03 00:57:21 +08:00