Skip to content

Commit

Permalink
修复输入数据过多时资源消耗过多问题;更新custom_ip_ranges,覆盖更全面
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Nov 14, 2024
1 parent 82a54f2 commit 96375fa
Show file tree
Hide file tree
Showing 5 changed files with 333 additions and 207 deletions.
5 changes: 0 additions & 5 deletions common/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ import (
"log/slog"
"net"
"net/http"
"strings"
)

func isIPv4(ip string) bool {
return strings.Contains(ip, ".")
}

func dialContext(destination string, destinationPort uint16) func(ctx context.Context, network, address string) (net.Conn, error) {
var addr string
if isIPv4(destination) {
Expand Down
Loading

0 comments on commit 96375fa

Please sign in to comment.