Compare commits

..

27 Commits

Author SHA1 Message Date
世界
45204e3926 documentation: Bump version 2023-12-25 00:08:27 +08:00
世界
4acc2c4af2 documentation: Update package managers 2023-12-25 00:08:27 +08:00
世界
fcbcb9a0aa Remove unnecessary context wrappers 2023-12-25 00:08:26 +08:00
世界
7a1aa8f75d Improve read wait interface &
Refactor Authenticator interface to struct &
Update smux &
Update gVisor to 20231204.0 &
Update wireguard-go &
Add GSO support for TUN/WireGuard &
Fix router pre-start &
Fix bind forwarder to interface for systems stack
2023-12-25 00:08:16 +08:00
世界
7ed90384a1 Make generated files have SUDO_USER's permissions if possible. 2023-12-24 21:52:37 +08:00
世界
ad93b8fba4 Refactor inbound/outbound options struct 2023-12-24 21:52:37 +08:00
世界
64ed8c0ff4 Improve configuration merge 2023-12-24 21:52:37 +08:00
世界
1239fb3725 Update uTLS to 1.5.4 2023-12-24 21:52:37 +08:00
世界
85310c9f84 Update tfo-go 2023-12-24 21:52:37 +08:00
世界
a4c318a2e9 Update gomobile and add tag 2023-12-24 21:52:37 +08:00
世界
52989e0683 Update cloudflare-tls to go1.21.5 2023-12-24 21:52:37 +08:00
世界
9eca72004b Make type check strict 2023-12-24 21:52:37 +08:00
世界
52b1b66428 Remove comparable limit for Listable 2023-12-24 21:52:37 +08:00
世界
16679f2b87 Avoid opening log output before start &
Replace tracing logs with task monitor
2023-12-24 21:52:37 +08:00
世界
b98bc1edb8 Update documentation 2023-12-24 21:52:37 +08:00
世界
9f84e9e077 Add idle_timeout for URLTest outbound 2023-12-24 21:52:37 +08:00
世界
4fa0db4b3b Skip internal fake-ip queries 2023-12-24 21:52:37 +08:00
世界
2d905c3fae Migrate contentjson and badjson to library &
Add omitempty in format
2023-12-24 21:52:37 +08:00
世界
9e2da8503f Update documentation 2023-12-24 21:52:37 +08:00
世界
0d6494efc5 Independent source_ip_is_private and ip_is_private rules 2023-12-24 21:52:37 +08:00
世界
cd0e594e96 Add rule-set 2023-12-24 21:52:37 +08:00
世界
5d17e20d20 Update buffer usage 2023-12-24 21:52:37 +08:00
世界
4a7281daba Allow nested logical rules 2023-12-24 21:52:37 +08:00
世界
6ba862e9d1 Migrate to independent cache file 2023-12-24 21:52:37 +08:00
世界
b7cdde5daf Fix ACME ALPN conflict 2023-12-24 21:52:37 +08:00
世界
2dfee05e7b Fix missing nil check for URLTest 2023-12-24 18:10:47 +08:00
世界
eff2270428 Fix V2Ray transport path validation behavior 2023-12-23 10:55:01 +08:00
3 changed files with 7 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
icon: material/alert-decagram
---
#### 1.8.0-rc.6
#### 1.8.0-rc.5
* Fixes and improvements

View File

@@ -122,18 +122,14 @@ type ListenOptions struct {
type UDPTimeoutCompat Duration
func (c UDPTimeoutCompat) MarshalJSON() ([]byte, error) {
return json.Marshal((time.Duration)(c).String())
}
func (c *UDPTimeoutCompat) UnmarshalJSON(data []byte) error {
func (u *UDPTimeoutCompat) UnmarshalJSON(data []byte) error {
var valueNumber int64
err := json.Unmarshal(data, &valueNumber)
if err == nil {
*c = UDPTimeoutCompat(time.Second * time.Duration(valueNumber))
*u = UDPTimeoutCompat(time.Second * time.Duration(valueNumber))
return nil
}
return json.Unmarshal(data, (*Duration)(c))
return json.Unmarshal(data, (*Duration)(u))
}
type ListenOptionsWrapper interface {

View File

@@ -29,7 +29,7 @@ type Client struct {
serverAddr M.Socksaddr
transport http.RoundTripper
http2 bool
requestURL url.URL
url *url.URL
host []string
method string
headers http.Header
@@ -81,7 +81,6 @@ func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, opt
ctx: ctx,
dialer: dialer,
serverAddr: serverAddr,
requestURL: requestURL,
host: options.Host,
method: options.Method,
headers: options.Headers.Build(),
@@ -106,7 +105,7 @@ func (c *Client) dialHTTP(ctx context.Context) (net.Conn, error) {
request := &http.Request{
Method: c.method,
URL: &c.requestURL,
URL: c.url,
Header: c.headers.Clone(),
}
switch hostLen := len(c.host); hostLen {
@@ -126,7 +125,7 @@ func (c *Client) dialHTTP2(ctx context.Context) (net.Conn, error) {
request := &http.Request{
Method: c.method,
Body: pipeInReader,
URL: &c.requestURL,
URL: c.url,
Header: c.headers.Clone(),
}
request = request.WithContext(ctx)