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
zonyitoo
bf6f2002e4
Master is now v1.8.23
2020-11-02 01:59:06 +08:00
zonyitoo
75c30dc528
Fixed build redir_local
v1.8.22
2020-11-02 01:41:05 +08:00
zonyitoo
ed9accff73
ARM gnueabihf doesnt have AES instructions
2020-11-02 01:35:02 +08:00
zonyitoo
0206c9e5b0
Hide unnecessary error! log, most of them are connection errors
2020-11-02 01:29:14 +08:00
zonyitoo
3a5034e161
TCP detect portal URL switched to firefox's service
...
- Master is now v1.8.22
- ref #180
2020-11-02 01:16:04 +08:00
zonyitoo
e3fe300613
Support SIP008 extend server fields server, server_port, remarks
v1.8.21
2020-11-01 22:06:24 +08:00
zonyitoo
6a1fd5dd2d
Fixed ssurl argument conflict setting ( #284 )
2020-11-01 22:01:37 +08:00
zonyitoo
0b2d7aa900
Release v1.8.21
2020-11-01 21:53:40 +08:00
zonyitoo
1e1ebb2437
Manager shouldn't replace user's mode configuration
...
fix #309
2020-11-01 21:37:31 +08:00