Skip to content

Commit

Permalink
Set replay cache size to unlimited and expire time to 16 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
enfein committed Feb 1, 2023
1 parent f2d8a3c commit 9c57b96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[中文文档](https://github.com/enfein/mieru/blob/main/README.zh_CN.md)

mieru is a secure, hard to classify, hard to probe, TCP or UDP protocol-based socks5 network proxy software.
mieru is a secure, hard to classify, hard to probe, TCP or UDP protocol-based socks5 / HTTP / HTTPS network proxy software.

The mieru proxy software suite consists of two parts, a client software called mieru, and a proxy server software called mita.

Expand Down
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/enfein/mieru.svg)](https://pkg.go.dev/github.com/enfein/mieru)
[![Go Report Card](https://goreportcard.com/badge/github.com/enfein/mieru)](https://goreportcard.com/report/github.com/enfein/mieru)

mieru【見える】是一款安全的、无流量特征、难以主动探测的,基于 TCP 或 UDP 协议的 socks5 网络代理软件。
mieru【見える】是一款安全的、无流量特征、难以主动探测的,基于 TCP 或 UDP 协议的 socks5 / HTTP / HTTPS 网络代理软件。

mieru 代理软件由称为 mieru【見える】的客户端软件和称为 mita【見た】的代理服务器软件这两部分组成。

Expand Down
2 changes: 1 addition & 1 deletion pkg/tcpsession/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const (

var (
// replayCache records possible replay in TCP sessions.
replayCache = replay.NewCache(1200_000, 10*time.Minute)
replayCache = replay.NewCache(1024*1024*1024, 8*time.Minute)

// maxPaddingSize is the maximum size of padding added to a single TCP payload.
maxPaddingSize = 256 + rng.FixedInt(256)
Expand Down
2 changes: 1 addition & 1 deletion pkg/udpsession/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
zeroTime = time.Time{}

// replayCache records possible replay in UDP sessions.
replayCache = replay.NewCache(600_000, 10*time.Minute)
replayCache = replay.NewCache(1024*1024*1024, 8*time.Minute)

// globalMTU is the L2 MTU used by all the UDP sessions.
globalMTU int32 = defaultMTU
Expand Down

0 comments on commit 9c57b96

Please sign in to comment.