repo stringlengths 5 53 | pr_number int32 1 321k | task_type stringclasses 2
values | issue_text stringlengths 0 81.2k | pr_title stringlengths 1 319 | pr_body stringlengths 0 105k | base_sha stringlengths 40 40 | head_sha stringlengths 40 40 | gold_diff stringlengths 0 202M | changed_files listlengths 0 100 | review_threads listlengths 0 100 | test_patch stringlengths 0 23.4M | merged bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
XTLS/Xray-core | 5,414 | issue_to_patch | XHTTP transport: New options for bypassing CDN's potential detection | Hi!
As you might know, there are currently white lists for mobile internet in many regions of Russia. It's hard set up an xray server to bypass the restriction because you need either a white-listed IP or a white-listed CDN that supports POST requests. This commit targets the latter case. There are few white listed ... | 61e1153157074b2329ec49e7c773211a8440af32 | 011c7a31c4e80b206005a7dfbdbad12aba4b3a27 | diff --git a/app/dns/nameserver_doh.go b/app/dns/nameserver_doh.go
index 9557c3252519..c0c1af265058 100644
--- a/app/dns/nameserver_doh.go
+++ b/app/dns/nameserver_doh.go
@@ -8,7 +8,6 @@ import (
"io"
"net/http"
"net/url"
- "strings"
"time"
utls "github.com/refraction-networking/utls"
@@ -20,6 +19,7 @@ impo... | [
"app/dns/nameserver_doh.go",
"common/utils/padding.go",
"infra/conf/transport_internet.go",
"transport/internet/splithttp/browser_client.go",
"transport/internet/splithttp/client.go",
"transport/internet/splithttp/common.go",
"transport/internet/splithttp/config.go",
"transport/internet/splithttp/conf... | [] | true | ||
XTLS/Xray-core | 5,947 | issue_to_patch | Direct/Freedom outbound: Add `ipsBlocked` (supports IP, CIDR, "geoip:", "ext:") and apply a default safe policy | https://github.com/XTLS/Xray-core/pull/5892#issuecomment-4254056911 | 3691741440b051fa20f174cfc471d038f2b3c06d | 6418478231ad88a153cecd44bfa4e66bb8f3cf3b | diff --git a/infra/conf/freedom.go b/infra/conf/freedom.go
index 82d2c9a8bc2a..b038e1025ae1 100644
--- a/infra/conf/freedom.go
+++ b/infra/conf/freedom.go
@@ -7,6 +7,7 @@ import (
"strings"
"github.com/xtls/xray-core/common/errors"
+ "github.com/xtls/xray-core/common/geodata"
v2net "github.com/xtls/xray-core/co... | [
"app/dns/dns_test.go",
"core/functions_test.go",
"infra/conf/freedom.go",
"proxy/freedom/config.pb.go",
"proxy/freedom/config.proto",
"proxy/freedom/freedom.go",
"proxy/vless/outbound/outbound.go",
"testing/scenarios/command_test.go",
"testing/scenarios/dokodemo_test.go",
"testing/scenarios/featur... | [
{
"comment": "~~改错位置了~~",
"path": "proxy/vless/outbound/outbound.go",
"hunk": "@@ -151,7 +151,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte\n \tif !ob.Target.IsValid() && ob.Target.Address.String() != \"v1.rvs.cool\" {\n \t\treturn errors.New(\"target not specifie... | diff --git a/app/dns/dns_test.go b/app/dns/dns_test.go
index d18c7686bdcb..c065056e39ec 100644
--- a/app/dns/dns_test.go
+++ b/app/dns/dns_test.go
@@ -147,7 +147,9 @@ func TestUDPServerSubnet(t *testing.T) {
},
Outbound: []*core.OutboundHandlerConfig{
{
- ProxySettings: serial.ToTypedMessage(&freedom.Confi... | true | |
XTLS/Xray-core | 5,947 | comment_to_fix | Direct/Freedom outbound: Add `ipsBlocked` (supports IP, CIDR, "geoip:", "ext:") and apply a default safe policy | ~~改错位置了~~ | 3691741440b051fa20f174cfc471d038f2b3c06d | 6418478231ad88a153cecd44bfa4e66bb8f3cf3b | diff --git a/proxy/vless/outbound/outbound.go b/proxy/vless/outbound/outbound.go
index 12fa75699a76..ac087c6372b1 100644
--- a/proxy/vless/outbound/outbound.go
+++ b/proxy/vless/outbound/outbound.go
@@ -100,6 +100,7 @@ func New(ctx context.Context, config *Config) (*Handler, error) {
if a.Reverse != nil {
rvsCtx :... | [
"proxy/vless/outbound/outbound.go"
] | [
{
"comment": "~~改错位置了~~",
"path": "proxy/vless/outbound/outbound.go",
"hunk": "@@ -151,7 +151,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte\n \tif !ob.Target.IsValid() && ob.Target.Address.String() != \"v1.rvs.cool\" {\n \t\treturn errors.New(\"target not specifie... | true | ||
XTLS/Xray-core | 5,947 | comment_to_fix | Direct/Freedom outbound: Add `ipsBlocked` (supports IP, CIDR, "geoip:", "ext:") and apply a default safe policy | 放 ExponentialBackoff 外面 | 3691741440b051fa20f174cfc471d038f2b3c06d | 6418478231ad88a153cecd44bfa4e66bb8f3cf3b | diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go
index d107e357157b..008f700fe76c 100644
--- a/proxy/freedom/freedom.go
+++ b/proxy/freedom/freedom.go
@@ -4,6 +4,7 @@ import (
"context"
"crypto/rand"
"io"
+ "strings"
"time"
"github.com/pires/go-proxyproto"
@@ -12,6 +13,7 @@ import (
"githu... | [
"proxy/freedom/freedom.go"
] | [
{
"comment": "放 ExponentialBackoff 外面",
"path": "proxy/freedom/freedom.go",
"hunk": "@@ -198,15 +198,9 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte\n \t\tif err != nil {\n \t\t\treturn err\n \t\t}\n-\t\tif h.blockedIPMatcher != nil {\n-\t\t\tremoteAddr, _, err := n... | true | ||
XTLS/Xray-core | 5,496 | issue_to_patch | Routing config: Replace `processName` with `process` (full-name/abs-path/abs-folder) | 进程名/绝对路径/文件夹 在Windows上测试了 Linux暂时没有 | b38a41249fd80c08c2a32e2dc5b06d42abc0bc9f | 76e7851f76240c61f81bcf3a6884bbec0387161d | diff --git a/app/router/condition.go b/app/router/condition.go
index 8d9027fe39e4..ca4f9605b081 100644
--- a/app/router/condition.go
+++ b/app/router/condition.go
@@ -3,7 +3,9 @@ package router
import (
"context"
"os"
+ "path/filepath"
"regexp"
+ "slices"
"strings"
"github.com/xtls/xray-core/common/errors"... | [
"app/router/condition.go",
"app/router/config.go",
"app/router/config.pb.go",
"app/router/config.proto",
"common/net/find_process_linux.go",
"common/net/find_process_others.go",
"common/net/find_process_windows.go",
"common/net/net.go",
"infra/conf/router.go"
] | [] | true | ||
XTLS/Xray-core | 6,285 | issue_to_patch | TUN & WireGuard inbounds: Ignore b.UDP's domain when receiving it from outbound | ~到底什么情况会用域名返回啊,懒得看了,先用原始目标返回,继续去看我的wg,有更好的修复可以提出~
#6279 | fdb9b616fc0edf8fb4c3285870388947b92669fc | 4db639da2246171c276dd28c859b834c7147a7ec | diff --git a/proxy/tun/udp_fullcone.go b/proxy/tun/udp_fullcone.go
index ab59e97f4b81..1a1cb0843c12 100644
--- a/proxy/tun/udp_fullcone.go
+++ b/proxy/tun/udp_fullcone.go
@@ -98,18 +98,22 @@ type udpConn struct {
}
func (c *udpConn) ReadMultiBuffer() (buf.MultiBuffer, error) {
- e, ok := <-c.egress
- if !ok {
- re... | [
"proxy/tun/udp_fullcone.go",
"proxy/wireguard/tun.go"
] | [] | true | ||
XTLS/Xray-core | 6,181 | issue_to_patch | uTLS: Update `ModernFingerprints` map and `OtherFingerprints` map | aba22722a65d31c4c17ef5d9619e75a9ca474ce7 | c07855973f6795c798c57bb5a06a0d3f6ce63a75 | diff --git a/transport/internet/tls/tls.go b/transport/internet/tls/tls.go
index 7fa3c25be55d..df5d1cbd7cf0 100644
--- a/transport/internet/tls/tls.go
+++ b/transport/internet/tls/tls.go
@@ -22,8 +22,10 @@ type Interface interface {
NegotiatedProtocol() string
}
-var _ buf.Writer = (*Conn)(nil)
-var _ Interface = ... | [
"transport/internet/tls/tls.go"
] | [] | true | |||
XTLS/Xray-core | 6,258 | issue_to_patch | XHTTP transport: Add `sessionIDTable` and `sessionIDLength`; Rename `session*` to `sessionID*` | 基本是 #6251 和 #6253 的修正版本
支持range设定 自定义table 必须是 ASCII 字符
预定义table
```
"ALPHABET": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"Alphabet": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
"BASE36": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"Base62": "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
"H... | fdb9b616fc0edf8fb4c3285870388947b92669fc | bbcf2c4e45a1568afcdf1fa464b56232ec66b51d | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 31701fe0aa36..2c5650b0daee 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -6,6 +6,7 @@ import (
"encoding/hex"
"encoding/json"
"math"
+ "math/big"
"net/netip"
"net/url"
"os"
@@ -21... | [
"infra/conf/transport_internet.go",
"transport/internet/splithttp/config.go",
"transport/internet/splithttp/config.pb.go",
"transport/internet/splithttp/config.proto",
"transport/internet/splithttp/dialer.go",
"transport/internet/splithttp/xpadding.go"
] | [] | true | ||
XTLS/Xray-core | 6,286 | issue_to_patch | Chore: Limit sing* dependencies to shadowsocks_2022 only | A small step on removing dependent on sing*
将对 sing 系的依赖控制在 shadowsocks_2022 包(以及关联的 singbridge 包和关联的配置解析)中
~~代价是 ss2022 的客户端 UoT 能力没了,考虑到使用的 UoT 能力是 sing 私有的而非 Shadowsocks 2022 标准,好像还能接受~~
~~将 sing ss2022 彻底清理的话 Windows x86-64 的二进制变小 800KiB,不过这么做真的可以吗~~ | fdb9b616fc0edf8fb4c3285870388947b92669fc | e2ab6b14511928ba1c5ad6c5ec3d97a517d46ae7 | diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go
index 7284a848d82a..578b2ca16e68 100644
--- a/app/proxyman/outbound/handler.go
+++ b/app/proxyman/outbound/handler.go
@@ -6,7 +6,6 @@ import (
goerrors "errors"
"io"
"math/big"
- "os"
"github.com/xtls/xray-core/common/dice"
@@ ... | [
"app/proxyman/outbound/handler.go",
"app/proxyman/outbound/uot.go",
"infra/conf/shadowsocks.go",
"proxy/shadowsocks_2022/config.pb.go",
"proxy/shadowsocks_2022/config.proto",
"proxy/shadowsocks_2022/outbound.go",
"transport/internet/finalmask/udp_test.go"
] | [] | diff --git a/transport/internet/finalmask/udp_test.go b/transport/internet/finalmask/udp_test.go
index 8a507d2ecc00..95233e02ef7c 100644
--- a/transport/internet/finalmask/udp_test.go
+++ b/transport/internet/finalmask/udp_test.go
@@ -2,7 +2,6 @@ package finalmask_test
import (
"bytes"
- "context"
"encoding/bina... | true | |
XTLS/Xray-core | 6,228 | issue_to_patch | Salamander finalmask: Replace `math/rand` with `crypto/rand` in salt generation | 使用密码学安全的随机数生成器生成明文Salt | 94ffd50060f1cfd5d7482ec90a23a92bdefdff68 | d5caac7507e98c1cbb77946731eaa412609b0ffc | diff --git a/transport/internet/finalmask/salamander/salamander.go b/transport/internet/finalmask/salamander/salamander.go
index d81863aa9723..3c7188c3ad41 100644
--- a/transport/internet/finalmask/salamander/salamander.go
+++ b/transport/internet/finalmask/salamander/salamander.go
@@ -1,11 +1,11 @@
package salamander... | [
"transport/internet/finalmask/salamander/salamander.go",
"transport/internet/finalmask/sudoku/codec.go",
"transport/internet/finalmask/sudoku/conn_tcp_packed.go",
"transport/internet/finalmask/sudoku/table.go"
] | [] | true | ||
XTLS/Xray-core | 6,283 | issue_to_patch | GitHub Action CI, README.md: Refinements and add compliance contents | - 对构建用的 CI 进行流程微调
- 针对 MPL 2.0 的许可框架对打包时引入的第三方二进制增加相应的说明 | fdb9b616fc0edf8fb4c3285870388947b92669fc | faec5d4a9b81f38fdc947f50469f58ed83018b52 | diff --git a/.github/build/windows/xray_no_window.cmd b/.github/build/windows/xray_no_window.cmd
new file mode 100644
index 000000000000..0fb15283b7b4
--- /dev/null
+++ b/.github/build/windows/xray_no_window.cmd
@@ -0,0 +1,1 @@
+powershell.exe -ExecutionPolicy Bypass -File ".\xray_no_window.ps1"
diff --git a/.github/b... | [
".github/build/windows/xray_no_window.cmd",
".github/build/windows/xray_no_window.ps1",
".github/build/windows/xray_no_window.vbs",
".github/workflows/release-win7.yml",
".github/workflows/release.yml",
".github/workflows/scheduled-assets-update.yml",
"README.md"
] | [] | true | ||
XTLS/Xray-core | 6,276 | issue_to_patch | "autoOutboundsInterface" 为 "127.0.0.1" 配置了 错误的 的网卡 (network interface)
### 完整性要求
- [x] 我读完了 issue 模板中的所有注释,确保填写符合要求。
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
### 描述
客户端使用 TUN 作为 inbound,并配置 inbound->... | TUN inbound: `autoOutboundsInterface` bypasses loopback addresses | 让它正常进系统的lo接口 避免被强行发送到公网 本来想着算了 但是发现刚好这个接口允许看dest 那就顺带处理一下吧
close #6269 | fdb9b616fc0edf8fb4c3285870388947b92669fc | 212d1b108b2e25571e678286a466886f7788242f | diff --git a/proxy/tun/handler.go b/proxy/tun/handler.go
index 1e8e030e6e56..94ab8248304e 100644
--- a/proxy/tun/handler.go
+++ b/proxy/tun/handler.go
@@ -2,6 +2,8 @@ package tun
import (
"context"
+ "net/netip"
+ "strings"
"syscall"
"github.com/xtls/xray-core/common"
@@ -80,6 +82,11 @@ func (t *Handler) Ini... | [
"proxy/tun/handler.go"
] | [] | true | |
XTLS/Xray-core | 6,275 | issue_to_patch | [程序崩溃] [客户端] TUN 入站 + sniff + fakedns
### 完整性要求
- [x] 我读完了 issue 模板中的所有注释,确保填写符合要求。
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
### 描述
情景:配置文件中,使用 TUN 入站,并在该入站中配置 sniffing -> enabled: true,并在 dns 模块开启 fa... | TUN inbound: Start TUN by AlwaysOnInboundHandler | 当初的说法是tun没法挂靠到worker上 结果直接给丢init里了 导致tun开始收包的时候其他组件可能没init
close #6274 | fdb9b616fc0edf8fb4c3285870388947b92669fc | 6de10652d79addad191f9f179fad69ddb192623f | diff --git a/app/proxyman/inbound/always.go b/app/proxyman/inbound/always.go
index 02b8419854d5..f26a30c2efc4 100644
--- a/app/proxyman/inbound/always.go
+++ b/app/proxyman/inbound/always.go
@@ -170,6 +170,12 @@ func NewAlwaysOnInboundHandler(ctx context.Context, tag string, receiverConfig *
// Start implements comm... | [
"app/proxyman/inbound/always.go",
"proxy/tun/handler.go"
] | [] | true | |
XTLS/Xray-core | 6,272 | issue_to_patch | XICMP finalmask: Refine Linux sever | 现在服务端可以根据原始包目标作为源 ip 发回去,此前只会用第一个 ip 回复,oob 每个系统支持不一样,只测试了 linux,理论上也支持 mac bsd,谁测试可以了在 go build 后上加上就可以
- 解决 windows 作为客户端时多 ip 跳跃问题,服务端有多 ipv4/ipv6 只有第一个 ip 能连上的问题
- 解决客户端处于 nat 网络时多 ip 跳跃问题,服务端有多 ipv4/ipv6 只有第一个 ip 能连上的问题 | fdb9b616fc0edf8fb4c3285870388947b92669fc | a1cb3e66cb7fb4d1111f9f7a0b3b9fbcb8dc9d54 | diff --git a/transport/internet/finalmask/xicmp/server.go b/transport/internet/finalmask/xicmp/server.go
index 2e95d842db7b..05ba48bbbbac 100644
--- a/transport/internet/finalmask/xicmp/server.go
+++ b/transport/internet/finalmask/xicmp/server.go
@@ -1,3 +1,5 @@
+//go:build !linux
+
package xicmp
import (
diff --gi... | [
"transport/internet/finalmask/xicmp/server.go",
"transport/internet/finalmask/xicmp/server_oob.go"
] | [] | true | ||
XTLS/Xray-core | 6,261 | issue_to_patch | [BUG] TLS ECH无法使用 DOH(h2c) 查询
TLS ECH无法使用 DOH(h2c) 查询
<img width="1920" height="1020" alt="{CA137595-EF13-48D2-8DD4-083B2C5C4A99}" src="https://github.com/user-attachments/assets/8b9d9bcb-ebd5-439d-b773-59014e81e512" />
_Originally posted by @j2rong4cn in https://github.com/XTLS/Xray-core/pull/6246#discussion_r334... | TLS ECH: Handle "h2c://" query correctly | close #6259 | fdb9b616fc0edf8fb4c3285870388947b92669fc | 0991024b4547994af6330be4b49723ba910229c1 | diff --git a/transport/internet/tls/ech.go b/transport/internet/tls/ech.go
index 9de124c1c2e2..4755cd4fd67c 100644
--- a/transport/internet/tls/ech.go
+++ b/transport/internet/tls/ech.go
@@ -234,6 +234,9 @@ func dnsQuery(server string, domain string, sockopt *internet.SocketConfig) ([]b
if err != nil {
return ni... | [
"transport/internet/tls/ech.go"
] | [] | true | |
XTLS/Xray-core | 6,291 | issue_to_patch | Bump github.com/pion/stun/v3 from 3.1.2 to 3.1.5 | Bumps [github.com/pion/stun/v3](https://github.com/pion/stun) from 3.1.2 to 3.1.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pion/stun/releases">github.com/pion/stun/v3's releases</a>.</em></p>
<blockquote>
<h2>v3.1.5</h2>
<h2>Changelog</h2>
<ul>
<li>02391b37388c7be80b4d... | fdb9b616fc0edf8fb4c3285870388947b92669fc | 8ab00f791dbf2cf148620f209b968ba0295e7d15 | diff --git a/go.mod b/go.mod
index c5b21f68e1cb..b1a64c93e8e7 100644
--- a/go.mod
+++ b/go.mod
@@ -12,7 +12,7 @@ require (
github.com/klauspost/cpuid/v2 v2.3.0
github.com/miekg/dns v1.1.72
github.com/pelletier/go-toml v1.9.5
- github.com/pion/stun/v3 v3.1.2
+ github.com/pion/stun/v3 v3.1.5
github.com/pires/go-p... | [
"go.mod",
"go.sum"
] | [] | true | ||
XTLS/Xray-core | 6,163 | issue_to_patch | DNS: Avoid passing domain to WriteTo func | Fix a WireGuard outbound UDP regression when the destination is still a domain name.
After the UDP FullCone fix in https://github.com/XTLS/Xray-core/pull/5858, `udpConnClient.WriteMultiBuffer` may use `b.UDP` as the packet destination. If that destination contains a domain, `RawNetAddr()` returns nil and `WriteTo` f... | 787aa7677b47c24f19aae84111d50ef4123072be | f3afc5d9aafcd2f4077ebf139a4ef7a1cb8b604f | diff --git a/app/dns/nameserver_udp.go b/app/dns/nameserver_udp.go
index 55b825f711a6..e75f301ac781 100644
--- a/app/dns/nameserver_udp.go
+++ b/app/dns/nameserver_udp.go
@@ -131,8 +131,6 @@ func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet *udp_prot
newReq.msg = &newMsg
s.addPendingRequest... | [
"app/dns/nameserver_udp.go",
"proxy/wireguard/client.go"
] | [
{
"comment": "For UDP, when the original destination is a domain you resolve it and then overwrite `destination.Address` with the chosen IP. Later, per-packet destinations with the same domain will be resolved again in `udpConnClient.resolveDestination`, and because `lookupIP` uses `dice.Roll` this can pick a d... | true | ||
XTLS/Xray-core | 6,163 | comment_to_fix | DNS: Avoid passing domain to WriteTo func | For UDP, when the original destination is a domain you resolve it and then overwrite `destination.Address` with the chosen IP. Later, per-packet destinations with the same domain will be resolved again in `udpConnClient.resolveDestination`, and because `lookupIP` uses `dice.Roll` this can pick a different IP family (v4... | 787aa7677b47c24f19aae84111d50ef4123072be | f3afc5d9aafcd2f4077ebf139a4ef7a1cb8b604f | diff --git a/proxy/wireguard/client.go b/proxy/wireguard/client.go
index 3ee3a2c5bfe4..8a02d89f184a 100644
--- a/proxy/wireguard/client.go
+++ b/proxy/wireguard/client.go
@@ -185,6 +185,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
}
addr = net.IPAddress(ips[dice.Roll(len(i... | [
"proxy/wireguard/client.go"
] | [
{
"comment": "For UDP, when the original destination is a domain you resolve it and then overwrite `destination.Address` with the chosen IP. Later, per-packet destinations with the same domain will be resolved again in `udpConnClient.resolveDestination`, and because `lookupIP` uses `dice.Roll` this can pick a d... | true | ||
XTLS/Xray-core | 6,163 | comment_to_fix | DNS: Avoid passing domain to WriteTo func | `resolvedUDPAddr` uses a raw `sync.Map` plus type assertions (`addr.(net.Address)`). If a nil or unexpected type were ever stored (e.g. via a future resolver implementation), this would panic at runtime. Consider using the existing `common/utils.TypedSyncMap[string, net.Address]` helper (used in `proxy/freedom/freedom.... | 787aa7677b47c24f19aae84111d50ef4123072be | f3afc5d9aafcd2f4077ebf139a4ef7a1cb8b604f | diff --git a/proxy/wireguard/client.go b/proxy/wireguard/client.go
index 3ee3a2c5bfe4..8a02d89f184a 100644
--- a/proxy/wireguard/client.go
+++ b/proxy/wireguard/client.go
@@ -185,6 +185,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
}
addr = net.IPAddress(ips[dice.Roll(len(i... | [
"proxy/wireguard/client.go"
] | [
{
"comment": "`resolvedUDPAddr` uses a raw `sync.Map` plus type assertions (`addr.(net.Address)`). If a nil or unexpected type were ever stored (e.g. via a future resolver implementation), this would panic at runtime. Consider using the existing `common/utils.TypedSyncMap[string, net.Address]` helper (used in `... | true | ||
XTLS/Xray-core | 6,222 | issue_to_patch | GitHub Actions CI: Builders run only once in pull requests in the same repository | https://github.com/XTLS/Xray-core/pull/6221#issuecomment-4588919827 | 94ffd50060f1cfd5d7482ec90a23a92bdefdff68 | ae20f7abd8ed210743ebf72d9b39ef1b1415774a | diff --git a/.github/workflows/release-win7.yml b/.github/workflows/release-win7.yml
index 9d777bc05dea..ac6b628f00ba 100644
--- a/.github/workflows/release-win7.yml
+++ b/.github/workflows/release-win7.yml
@@ -11,6 +11,7 @@ on:
jobs:
check-assets:
runs-on: ubuntu-latest
+ if: github.event_name != 'pull_req... | [
".github/workflows/release-win7.yml",
".github/workflows/release.yml"
] | [] | true | ||
XTLS/Xray-core | 5,720 | issue_to_patch | XHTTP transport: Bugfixes for obfuscations | 1. Browser Dialer was broken in XHTTP. I fixed it and added support for the new HTTP methods and cookies.
Added OPTIONS support and some Access-Control-Allow-* headers for browser dialer on the server side.
To reduce the number of OPTIONS requests one can access browser dialer from the XHTTP domain (e.g. cdn.example.... | 9514e988d817b2909b4acb266259fca6f241514c | 0c185ac99b15d0889b790c61765d0962376b713a | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index b4458096b458..b726ef0aca13 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -230,13 +230,14 @@ type SplitHTTPConfig struct {
SeqKey string `json:"seqKey"`
UplinkData... | [
"infra/conf/transport_internet.go",
"transport/internet/browser_dialer/dialer.go",
"transport/internet/browser_dialer/dialer.html",
"transport/internet/splithttp/browser_client.go",
"transport/internet/splithttp/client.go",
"transport/internet/splithttp/common.go",
"transport/internet/splithttp/config.g... | [] | true | ||
XTLS/Xray-core | 6,244 | issue_to_patch | README.md: Add Hey to HarmonyOS in GUI Clients | Add hey, a HarmonyOS GUI client, to the README GUI Clients list. | 94ffd50060f1cfd5d7482ec90a23a92bdefdff68 | ced5a4c0a182186358e8269cf8eaae2216f0107c | diff --git a/README.md b/README.md
index deeb29049c00..d04cd359cb38 100644
--- a/README.md
+++ b/README.md
@@ -145,6 +145,8 @@
- [v2rayN](https://github.com/2dust/v2rayN)
- [GenyConnect](https://github.com/genyleap/GenyConnect)
- [OneXray](https://github.com/OneXray/OneXray)
+- HarmonyOS
+ - [Hey](https://git... | [
"README.md"
] | [] | true | ||
XTLS/Xray-core | 5,656 | issue_to_patch | TLS client: Simplify cert's verification code | 之前有点弄错了 第一个证书必为leaf 稍微简化一下代码 | b7a22c729be98e613d90ab8e1140b72ea009696b | 4b8c4c48e2b1f8aba12cec78493bec4710147107 | diff --git a/main/commands/all/tls/hash.go b/main/commands/all/tls/hash.go
new file mode 100644
index 000000000000..e15f5b215b03
--- /dev/null
+++ b/main/commands/all/tls/hash.go
@@ -0,0 +1,78 @@
+package tls
+
+import (
+ "bytes"
+ "crypto/x509"
+ "encoding/pem"
+ "flag"
+ "fmt"
+ "os"
+ "text/tabwriter"
+
+ "github.c... | [
"main/commands/all/tls/hash.go",
"main/commands/all/tls/leafcerthash.go",
"main/commands/all/tls/ping.go",
"main/commands/all/tls/tls.go",
"transport/internet/tls/config.go",
"transport/internet/tls/pin.go"
] | [] | true | ||
XTLS/Xray-core | 6,226 | issue_to_patch | TLS config: Remove some deprecated fields | 2025-06-01 | 94ffd50060f1cfd5d7482ec90a23a92bdefdff68 | b83bbee8380f80cc37446b2504e41f77838fc69d | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 7a86a08bab30..31701fe0aa36 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -14,7 +14,6 @@ import (
"strconv"
"strings"
"syscall"
- "time"
"github.com/xtls/xray-core/common"
"github.... | [
"infra/conf/transport_internet.go",
"transport/internet/tls/config.go",
"transport/internet/tls/config.pb.go",
"transport/internet/tls/config.proto"
] | [] | true | ||
XTLS/Xray-core | 6,090 | issue_to_patch | GitHub Action CI: Add Go source file format check | https://github.com/XTLS/Xray-core/pull/6057#issuecomment-4364819830
全局检查一遍,有问题直接列出文件路径以及具体更改并且错误码触发 Actions 错误,不写回仓库 | ca4b156b57b11d77545039b4000ed3bbc2fdabdd | 05303cb002e04a770f3f95b416ee6389e747f725 | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c07983a46aa0..ccc2fab605f8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: Test
+name: Tests and Checkings
on:
push:
@@ -8,6 +8,7 @@ on:
jobs:
check-assets:
runs-on: ubuntu-latest
+ ... | [
".github/workflows/test.yml",
"app/commander/commander.go",
"app/dns/cache_controller.go",
"app/dns/dns.go",
"app/dns/dnscommon_test.go",
"app/dns/fakedns/fakedns_test.go",
"app/dns/nameserver.go",
"app/dns/nameserver_local.go",
"app/metrics/metrics.go",
"app/observatory/burst/burstobserver.go",
... | [] | diff --git a/app/dns/dnscommon_test.go b/app/dns/dnscommon_test.go
index fc73d20d813b..64e9876006d9 100644
--- a/app/dns/dnscommon_test.go
+++ b/app/dns/dnscommon_test.go
@@ -25,7 +25,8 @@ func Test_parseResponse(t *testing.T) {
ans = new(dns.Msg)
ans.Id = 1
- ans.Answer = append(ans.Answer,
+ ans.Answer = append... | true | |
XTLS/Xray-core | 6,027 | issue_to_patch | routing分流问题
### 完整性要求
- [x] 我读完了 issue 模板中的所有注释,确保填写符合要求。
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
### 描述
刚才R佬让我用4.17试一试,4.17也无法使用
之前讨论:https://github.com/XTLS/Xray-core/issues/5977#issuecomment-43227... | Direct/Freedom outbound: Add `finalRules` (matches `network`, `port` and `ip`, then `action`) with default safe policies | Close #6018 | b4f08981becb71eaa995fa98ed2098ade92566bb | 814e1733cce01308a169448480fc07584ffb1810 | diff --git a/infra/conf/dns_proxy.go b/infra/conf/dns_proxy.go
index 50c535c8e889..50ba41bb7df7 100644
--- a/infra/conf/dns_proxy.go
+++ b/infra/conf/dns_proxy.go
@@ -84,7 +84,7 @@ func (c *DNSOutboundConfig) Build() (proto.Message, error) {
if c.Rules != nil {
return nil, errors.New("legacy nonIPQuery and block... | [
"app/dns/dns_test.go",
"app/proxyman/outbound/handler_test.go",
"core/functions_test.go",
"infra/conf/dns_proxy.go",
"infra/conf/freedom.go",
"infra/conf/freedom_test.go",
"proxy/freedom/config.go",
"proxy/freedom/config.pb.go",
"proxy/freedom/config.proto",
"proxy/freedom/freedom.go",
"testing/... | [
{
"comment": "vless 移上去",
"path": "proxy/freedom/freedom.go",
"hunk": "@@ -68,73 +45,175 @@ func init() {\n \t\t}\n \t\treturn h, nil\n \t}))\n+\n \tconst defaultFlagValue = \"NOT_DEFINED_AT_ALL\"\n \tvalue := platform.NewEnvFlag(platform.UseFreedomSplice).GetValue(func() string { return defaultFlagValu... | diff --git a/app/dns/dns_test.go b/app/dns/dns_test.go
index 067ff44566ed..8ccfe8407c3e 100644
--- a/app/dns/dns_test.go
+++ b/app/dns/dns_test.go
@@ -148,7 +148,7 @@ func TestUDPServerSubnet(t *testing.T) {
Outbound: []*core.OutboundHandlerConfig{
{
ProxySettings: serial.ToTypedMessage(&freedom.Config{
- ... | true |
XTLS/Xray-core | 6,027 | comment_to_fix | Direct/Freedom outbound: Add `finalRules` (matches `network`, `port` and `ip`, then `action`) with default safe policies | vless 移上去 | b4f08981becb71eaa995fa98ed2098ade92566bb | 814e1733cce01308a169448480fc07584ffb1810 | diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go
index aeb54c9cdd2a..8be8dbe053ef 100644
--- a/proxy/freedom/freedom.go
+++ b/proxy/freedom/freedom.go
@@ -31,32 +31,9 @@ import (
)
var useSplice bool
-
-var defaultPrivateBlockIP = []string{
- "0.0.0.0/8",
- "10.0.0.0/8",
- "100.64.0.0/10",
- "127.0.... | [
"proxy/freedom/freedom.go"
] | [
{
"comment": "vless 移上去",
"path": "proxy/freedom/freedom.go",
"hunk": "@@ -68,73 +45,175 @@ func init() {\n \t\t}\n \t\treturn h, nil\n \t}))\n+\n \tconst defaultFlagValue = \"NOT_DEFINED_AT_ALL\"\n \tvalue := platform.NewEnvFlag(platform.UseFreedomSplice).GetValue(func() string { return defaultFlagValu... | true | ||
XTLS/Xray-core | 6,027 | comment_to_fix | Direct/Freedom outbound: Add `finalRules` (matches `network`, `port` and `ip`, then `action`) with default safe policies | 合并成一项,*net.Destination | b4f08981becb71eaa995fa98ed2098ade92566bb | 814e1733cce01308a169448480fc07584ffb1810 | diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go
index aeb54c9cdd2a..8be8dbe053ef 100644
--- a/proxy/freedom/freedom.go
+++ b/proxy/freedom/freedom.go
@@ -31,32 +31,9 @@ import (
)
var useSplice bool
-
-var defaultPrivateBlockIP = []string{
- "0.0.0.0/8",
- "10.0.0.0/8",
- "100.64.0.0/10",
- "127.0.... | [
"proxy/freedom/freedom.go"
] | [
{
"comment": "合并成一项,*net.Destination",
"path": "proxy/freedom/freedom.go",
"hunk": "@@ -173,6 +252,8 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte\n \toutput := link.Writer\n \n \tvar conn stat.Connection\n+\tvar blockedDest net.Destination\n+\tvar blocked bool",
... | true | ||
XTLS/Xray-core | 6,027 | comment_to_fix | Direct/Freedom outbound: Add `finalRules` (matches `network`, `port` and `ip`, then `action`) with default safe policies | ~~不用提 freedom,这个错误传回去自带前缀~~ | b4f08981becb71eaa995fa98ed2098ade92566bb | 814e1733cce01308a169448480fc07584ffb1810 | diff --git a/infra/conf/freedom.go b/infra/conf/freedom.go
index b038e1025ae1..c53be8eb260d 100644
--- a/infra/conf/freedom.go
+++ b/infra/conf/freedom.go
@@ -1,6 +1,7 @@
package conf
import (
+ "context"
"encoding/base64"
"encoding/hex"
"net"
@@ -8,7 +9,7 @@ import (
"github.com/xtls/xray-core/common/err... | [
"infra/conf/freedom.go"
] | [
{
"comment": "~~不用提 freedom,这个错误传回去自带前缀~~",
"path": "infra/conf/freedom.go",
"hunk": "@@ -51,6 +51,10 @@ type FreedomFinalRuleConfig struct {\n \n // Build implements Buildable\n func (c *FreedomConfig) Build() (proto.Message, error) {\n+\tif c.IPsBlocked != nil {\n+\t\treturn nil, errors.PrintRemovedFe... | true | ||
XTLS/Xray-core | 6,027 | comment_to_fix | Direct/Freedom outbound: Add `finalRules` (matches `network`, `port` and `ip`, then `action`) with default safe policies | ~~只是这样写应该不会 print 出来~~ | b4f08981becb71eaa995fa98ed2098ade92566bb | 814e1733cce01308a169448480fc07584ffb1810 | diff --git a/infra/conf/freedom.go b/infra/conf/freedom.go
index b038e1025ae1..c53be8eb260d 100644
--- a/infra/conf/freedom.go
+++ b/infra/conf/freedom.go
@@ -1,6 +1,7 @@
package conf
import (
+ "context"
"encoding/base64"
"encoding/hex"
"net"
@@ -8,7 +9,7 @@ import (
"github.com/xtls/xray-core/common/err... | [
"infra/conf/freedom.go"
] | [
{
"comment": "~~只是这样写应该不会 print 出来~~",
"path": "infra/conf/freedom.go",
"hunk": "@@ -52,7 +52,7 @@ type FreedomFinalRuleConfig struct {\n // Build implements Buildable\n func (c *FreedomConfig) Build() (proto.Message, error) {\n \tif c.IPsBlocked != nil {\n-\t\treturn nil, errors.PrintRemovedFeatureErro... | true | ||
XTLS/Xray-core | 5,644 | issue_to_patch | Commands: Print CA cert's SHA256 in `tls ping` | 输出CA指纹了 结合tab writer 美观了很多倍
<img width="1101" height="558" alt="image" src="https://github.com/user-attachments/assets/073e22ff-b02d-47cf-b71b-dc7d7e063699" /> | d14767d4f307dd42e6b41c4871480bcb85437b21 | 0ed714839159c38497270af0e93b236b480a9a94 | diff --git a/common/utils/access_field.go b/common/utils/access_field.go
new file mode 100644
index 000000000000..bc42e67cf405
--- /dev/null
+++ b/common/utils/access_field.go
@@ -0,0 +1,17 @@
+package utils
+
+import (
+ "reflect"
+ "unsafe"
+)
+
+// AccessField can used to access unexported field of a struct
+// valu... | [
"common/utils/access_field.go",
"infra/conf/transport_internet.go",
"main/commands/all/tls/ping.go",
"transport/internet/tls/config.go",
"transport/internet/tls/config.pb.go",
"transport/internet/tls/config.proto",
"transport/internet/tls/tls.go"
] | [] | true | ||
XTLS/Xray-core | 6,221 | issue_to_patch | Burst observatory: Fix init check | https://github.com/XTLS/Xray-core/pull/6106#issuecomment-4587975865 | 455f6bc2d5915be0465d66fe6d7d06974c2729d3 | aabbbeb0fa1f44a84d242f0ca59a1483aad0a6af | diff --git a/app/observatory/burst/healthping.go b/app/observatory/burst/healthping.go
index cb1c3402d7cc..62a2e6369bfb 100644
--- a/app/observatory/burst/healthping.go
+++ b/app/observatory/burst/healthping.go
@@ -102,6 +102,16 @@ func (h *HealthPing) StartScheduler(selector func() ([]string, error)) {
h.Check(tags... | [
"app/observatory/burst/healthping.go"
] | [] | true | ||
XTLS/Xray-core | 6,214 | issue_to_patch | DNS outbound: Replace "reject" with "return" (`rCode` is 0 by default) | 1. 在 DNS 出站 规则配置中添加了可选的 `rCode` 字段,允许规则指定在拒绝时要返回的 DNS RCode。
`rCode` 字段留空时为 NOERROR(0)
2. `qtype` -> `qType`
3. `reject` -> `return`
```json
{
"rules": [
{
"action": "hijack",
"qType": "1,28",
"domain": ["domain:example.com"]
},
{
"action": "return",
"rCode": ... | d43a808ea50265383646d17321426b193594fb21 | ce0d8eb1be072386c03b03c4b62228b531f325ef | diff --git a/infra/conf/common.go b/infra/conf/common.go
index ab3cfba79ac4..0de3568cd143 100644
--- a/infra/conf/common.go
+++ b/infra/conf/common.go
@@ -3,6 +3,7 @@ package conf
import (
"encoding/json"
"fmt"
+ "math"
"strconv"
"strings"
@@ -199,7 +200,7 @@ func (v *PortRange) UnmarshalJSON(data []byte) er... | [
"infra/conf/common.go",
"infra/conf/dns_proxy.go",
"infra/conf/dns_proxy_test.go",
"proxy/dns/config.pb.go",
"proxy/dns/config.proto",
"proxy/dns/dns.go",
"proxy/dns/dns_test.go"
] | [
{
"comment": "这里建议直接用 uint16\r\n个人感觉用户可配全局默认没必要,怪怪的,文档还得解释一堆\r\n\r\nhijack 时也有可能生效,或许叫 rcode?",
"path": "infra/conf/dns_proxy.go",
"hunk": "@@ -7,13 +7,15 @@ import (\n \t\"github.com/xtls/xray-core/common/geodata\"\n \t\"github.com/xtls/xray-core/common/net\"\n \t\"github.com/xtls/xray-core/proxy/dns\"... | diff --git a/infra/conf/dns_proxy_test.go b/infra/conf/dns_proxy_test.go
index 1656e2d6ef43..b88b0cfef3c4 100644
--- a/infra/conf/dns_proxy_test.go
+++ b/infra/conf/dns_proxy_test.go
@@ -35,10 +35,10 @@ func TestDnsProxyConfig(t *testing.T) {
Input: `{
"rules": [{
"action": "direct",
- "qtype": "1,3,... | true | |
XTLS/Xray-core | 6,214 | comment_to_fix | DNS outbound: Replace "reject" with "return" (`rCode` is 0 by default) | 这里建议直接用 uint16
个人感觉用户可配全局默认没必要,怪怪的,文档还得解释一堆
hijack 时也有可能生效,或许叫 rcode? | d43a808ea50265383646d17321426b193594fb21 | ce0d8eb1be072386c03b03c4b62228b531f325ef | diff --git a/infra/conf/dns_proxy.go b/infra/conf/dns_proxy.go
index 734175e334ba..aabdea86c766 100644
--- a/infra/conf/dns_proxy.go
+++ b/infra/conf/dns_proxy.go
@@ -12,8 +12,9 @@ import (
type DNSOutboundRuleConfig struct {
Action string `json:"action"`
- QType *PortList `json:"qtype"`
+ QType *PortList... | [
"infra/conf/dns_proxy.go"
] | [
{
"comment": "这里建议直接用 uint16\r\n个人感觉用户可配全局默认没必要,怪怪的,文档还得解释一堆\r\n\r\nhijack 时也有可能生效,或许叫 rcode?",
"path": "infra/conf/dns_proxy.go",
"hunk": "@@ -7,13 +7,15 @@ import (\n \t\"github.com/xtls/xray-core/common/geodata\"\n \t\"github.com/xtls/xray-core/common/net\"\n \t\"github.com/xtls/xray-core/proxy/dns\"... | true | ||
XTLS/Xray-core | 6,214 | comment_to_fix | DNS outbound: Replace "reject" with "return" (`rCode` is 0 by default) | 这里也是建议直接用 uint16
尽管 protobuf 只有 32
主要是导个包进来感觉怪怪的
infra 好像从没这么干过 | d43a808ea50265383646d17321426b193594fb21 | ce0d8eb1be072386c03b03c4b62228b531f325ef | diff --git a/infra/conf/dns_proxy.go b/infra/conf/dns_proxy.go
index 734175e334ba..aabdea86c766 100644
--- a/infra/conf/dns_proxy.go
+++ b/infra/conf/dns_proxy.go
@@ -12,8 +12,9 @@ import (
type DNSOutboundRuleConfig struct {
Action string `json:"action"`
- QType *PortList `json:"qtype"`
+ QType *PortList... | [
"infra/conf/dns_proxy.go"
] | [
{
"comment": "这里也是建议直接用 uint16\r\n尽管 protobuf 只有 32\r\n\r\n主要是导个包进来感觉怪怪的\r\ninfra 好像从没这么干过",
"path": "infra/conf/dns_proxy.go",
"hunk": "@@ -66,6 +71,7 @@ type DNSOutboundConfig struct {\n \tPort uint16 `json:\"port\"`\n \tUserLevel uint32 `json:\"userL... | true | ||
XTLS/Xray-core | 6,214 | comment_to_fix | DNS outbound: Replace "reject" with "return" (`rCode` is 0 by default) | 自定义 rcode 这里代码就变得比较奇怪
既然现在 0 更好,建议直接 5 -> 0 算了,不要再堆个选项上去,没什么收益
也没有 0 默认值 string 一堆事儿了 | d43a808ea50265383646d17321426b193594fb21 | ce0d8eb1be072386c03b03c4b62228b531f325ef | diff --git a/proxy/dns/dns.go b/proxy/dns/dns.go
index 2d678dd2b4e2..efeb56cda572 100644
--- a/proxy/dns/dns.go
+++ b/proxy/dns/dns.go
@@ -45,6 +45,7 @@ type DNSRule struct {
action RuleAction
qTypes []uint16
domains geodata.DomainMatcher
+ rCode dnsmessage.RCode
}
func (r *DNSRule) matchQType(qType uint1... | [
"proxy/dns/dns.go"
] | [
{
"comment": "自定义 rcode 这里代码就变得比较奇怪\r\n既然现在 0 更好,建议直接 5 -> 0 算了,不要再堆个选项上去,没什么收益\r\n也没有 0 默认值 string 一堆事儿了",
"path": "proxy/dns/dns.go",
"hunk": "@@ -136,17 +142,17 @@ func parseQuery(b []byte) (id uint16, qType dnsmessage.Type, domain string, ok b\n \treturn\n }\n \n-func (h *Handler) applyRules(qType d... | true | ||
XTLS/Xray-core | 6,106 | issue_to_patch | Burst observatory: Fix time compare, cancel pending ping on instance close or new schedule started | - Compare Interval to 10s
- Serialize check rounds
- Cancel pending pings on StopScheduler | aba22722a65d31c4c17ef5d9619e75a9ca474ce7 | 16f1c22f975be3f0f88541809591a0644313d2e4 | diff --git a/app/observatory/burst/healthping.go b/app/observatory/burst/healthping.go
index cb1c3402d7cc..d57f51e8802d 100644
--- a/app/observatory/burst/healthping.go
+++ b/app/observatory/burst/healthping.go
@@ -5,6 +5,7 @@ import (
"fmt"
"strings"
"sync"
+ "sync/atomic"
"time"
"github.com/xtls/xray-core... | [
"app/observatory/burst/healthping.go",
"app/observatory/burst/healthping_result.go"
] | [] | true | ||
XTLS/Xray-core | 6,188 | issue_to_patch | noise finalmask: Better `reset` | 787aa7677b47c24f19aae84111d50ef4123072be | 1a50dd986e0f710b8c7989eb35dc78e3209e70cf | diff --git a/transport/internet/finalmask/noise/conn.go b/transport/internet/finalmask/noise/conn.go
index c3ab89ab4d09..8bb115bb4ba0 100644
--- a/transport/internet/finalmask/noise/conn.go
+++ b/transport/internet/finalmask/noise/conn.go
@@ -12,85 +12,41 @@ type noiseConn struct {
net.PacketConn
config *Config
m... | [
"transport/internet/finalmask/noise/conn.go"
] | [] | true | |||
XTLS/Xray-core | 6,213 | issue_to_patch | Realm finalmask: Fix client punch peers | ~我记得之前写的就是 expanded,应该是移动的时候被我改了~ | d43a808ea50265383646d17321426b193594fb21 | 66c6a5928dcdfa696e635ff0627ab0bccdfa3f52 | diff --git a/transport/internet/finalmask/realm/client.go b/transport/internet/finalmask/realm/client.go
index ab7ba6bb416d..256518461b06 100644
--- a/transport/internet/finalmask/realm/client.go
+++ b/transport/internet/finalmask/realm/client.go
@@ -80,7 +80,7 @@ func (c *realmConnClient) getpeer() (net.PacketConn, er... | [
"transport/internet/finalmask/realm/client.go",
"transport/internet/finalmask/realm/stun.go"
] | [] | true | ||
XTLS/Xray-core | 6,137 | issue_to_patch | Finalmask: Add Realm (UDP hole punching in Hysteria v2.9.1) | refer to hysteria 2.9.1
现在用的 net.DefaultResolver + http.DefaultClient,建议自建 realm 以及搭配 keepAlivePeriod 食用
```jsonc
"finalmask": {
"udp": [
{
"type": "realm",
"settings": {
"url": "",
"stunServers": [],
"tlsConfig": {}
}
}
]
}
```
```jsonc
{
... | 787aa7677b47c24f19aae84111d50ef4123072be | fafd9c68c9da475623826f55e243f519772adbc3 | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 589eddb1d428..b1b4687518e7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -208,6 +208,9 @@ jobs:
go build -o build_assets/xray.exe -trimpath -buildvcs=false -gcflags="all=-l=4" -ldflags="-X g... | [
".github/workflows/release.yml",
"README.md",
"go.mod",
"go.sum",
"infra/conf/transport_internet.go",
"transport/internet/finalmask/realm/client.go",
"transport/internet/finalmask/realm/config.go",
"transport/internet/finalmask/realm/config.pb.go",
"transport/internet/finalmask/realm/config.proto",
... | [] | true | ||
XTLS/Xray-core | 6,201 | issue_to_patch | Finalmask: Add mkcp-legacy (UDP) to replace mkcp-* and legacy header-* | 低优先级,还不确定要不要这么改,感觉这样可以让文件结构和文档简单点(~没错,不止是文档刷屏~),顺便在这里把 udp header 改到独立 conn
```jsonc
"finalmask": {
"udp": [
{
"type": "mkcp-legacy",
"settings": {
"header": "dns", // empty for aes & xor
"value": "" // password or domain
}
}
]
}
```
tcp/udp header-custom ... | 2b4269962360bdb4abc9c1d0117d52a92162a4a9 | aba3cecba8e1e0d72dc50913e19452689d3208fd | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 7ef91e522095..25fe978acbd9 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -24,13 +24,8 @@ import (
"github.com/xtls/xray-core/transport/internet"
"github.com/xtls/xray-core/transport/inter... | [
"infra/conf/transport_internet.go",
"transport/internet/finalmask/header/custom/config.go",
"transport/internet/finalmask/header/custom/udp.go",
"transport/internet/finalmask/header/custom/udp_runtime_test.go",
"transport/internet/finalmask/header/dns/config.pb.go",
"transport/internet/finalmask/header/dn... | [] | diff --git a/transport/internet/finalmask/header/custom/udp_runtime_test.go b/transport/internet/finalmask/header/custom/udp_runtime_test.go
index e0a091f4dfdc..3b726f07db1a 100644
--- a/transport/internet/finalmask/header/custom/udp_runtime_test.go
+++ b/transport/internet/finalmask/header/custom/udp_runtime_test.go
@... | true | |
XTLS/Xray-core | 6,185 | issue_to_patch | [Bug] finalmask UDP listener dies on first invalid packet, kernel buffer overflows silently (Hysteria2/XHTTP3, v26.5.9)
### Integrity Requirements
- [x] I read all comments in the issue template and confirm my submission complies.
- [x] I have read the documentation and understand each option in my configs.
- [x] I p... | Sudoku finalmask: Harden UDP ReadFrom() against invalid packets | ## Summary
When `udpConn.ReadFrom` fails on an invalid UDP packet, continue reading the next datagram instead of returning a fatal error. This prevents quic-go from terminating its `Accept` goroutine when garbage arrives on the wire.
## Problem
The current implementation in `conn_udp.go` returns a fatal error when `... | 66a81007379656b803d55ac2c093f0ad2408f2b2 | 53149e175a553d4c9e9e703972ae82d32367a9cb | diff --git a/transport/internet/finalmask/sudoku/conn_udp.go b/transport/internet/finalmask/sudoku/conn_udp.go
index c2b2f4dda55e..4d610b50ae78 100644
--- a/transport/internet/finalmask/sudoku/conn_udp.go
+++ b/transport/internet/finalmask/sudoku/conn_udp.go
@@ -1,10 +1,12 @@
package sudoku
import (
- "io"
+ "conte... | [
"transport/internet/finalmask/sudoku/conn_udp.go"
] | [
{
"comment": "let's continue on this case",
"path": "transport/internet/finalmask/sudoku/conn_udp.go",
"hunk": "@@ -39,26 +39,30 @@ func (c *udpConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) {\n \tc.readMu.Lock()\n \tdefer c.readMu.Unlock()\n \n-\tn, addr, err = c.conn.ReadFrom(c.readBuf)\n-... | true | |
XTLS/Xray-core | 6,185 | comment_to_fix | Sudoku finalmask: Harden UDP ReadFrom() against invalid packets | let's continue on this case | 66a81007379656b803d55ac2c093f0ad2408f2b2 | 53149e175a553d4c9e9e703972ae82d32367a9cb | diff --git a/transport/internet/finalmask/sudoku/conn_udp.go b/transport/internet/finalmask/sudoku/conn_udp.go
index c2b2f4dda55e..4d610b50ae78 100644
--- a/transport/internet/finalmask/sudoku/conn_udp.go
+++ b/transport/internet/finalmask/sudoku/conn_udp.go
@@ -1,10 +1,12 @@
package sudoku
import (
- "io"
+ "conte... | [
"transport/internet/finalmask/sudoku/conn_udp.go"
] | [
{
"comment": "let's continue on this case",
"path": "transport/internet/finalmask/sudoku/conn_udp.go",
"hunk": "@@ -39,26 +39,30 @@ func (c *udpConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) {\n \tc.readMu.Lock()\n \tdefer c.readMu.Unlock()\n \n-\tn, addr, err = c.conn.ReadFrom(c.readBuf)\n-... | true | ||
XTLS/Xray-core | 5,916 | issue_to_patch | Global HTTP headers' masquerading: Add "curl"; Improve version generators | This PR added version generators for cURL, Firefox and Safari, as well as realistic headers for each. The RNG has also been migrated to become global.
The newer version generators still use randomized distributions, however it's now more deterministic, with a single setback scaled by a natural tailed curve, simulati... | 1642fdfbddb4242fe5abe16a873b890d408da032 | 48ed96c5b07e188ad80af29cc2f85205f825b0cf | diff --git a/common/utils/browser.go b/common/utils/browser.go
index 2337125a0ed9..957f49b727ae 100644
--- a/common/utils/browser.go
+++ b/common/utils/browser.go
@@ -1,6 +1,8 @@
package utils
import (
+ "hash/fnv"
+ "math"
"math/rand"
"strconv"
"time"
@@ -10,20 +12,57 @@ import (
"github.com/klauspost/cpui... | [
"common/utils/browser.go"
] | [] | true | ||
XTLS/Xray-core | 6,168 | issue_to_patch | XICMP finalmask: Refactor & Speed up; Add multi `ips` and `dgram` mode (client) | 重构了下,某老哥要的速度版本,应该比之前好不少,另外完成之前多 ip 的饼,和 xdns 一样 8 字节做 client 识别,id seq 不再用于 client 识别
dgram mode 仅客户端的 linux mac ios
```jsonc
"finalmask": {
"udp": [
{
"type": "xicmp",
"settings": {
// "dgram": true
"ips": []
}
}
]
}
```
```jsonc
{
"log": { "loglev... | 66a81007379656b803d55ac2c093f0ad2408f2b2 | d4e85bcad6a0d7cf95941cef93d84254b67ef2a4 | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 7bd481652b43..09600339269d 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -6,6 +6,7 @@ import (
"encoding/hex"
"encoding/json"
"math"
+ "net/netip"
"net/url"
"os"
"regexp"
@@ -1885... | [
"infra/conf/transport_internet.go",
"transport/internet/finalmask/xicmp/client.go",
"transport/internet/finalmask/xicmp/config.pb.go",
"transport/internet/finalmask/xicmp/config.proto",
"transport/internet/finalmask/xicmp/server.go"
] | [] | true | ||
XTLS/Xray-core | 6,198 | issue_to_patch | Salamander finalmask: Support `packetSize` (Gecko in Hysteria v2.9.2) | refer to hysteria 2.9.2
refine frag
refine salamander
refine headerManagerConn
add gecko
base #6193
```jsonc
"finalmask": {
"udp": [
{
"type": "salamander",
"settings": {
"password": "obfs",
"packetSize": "512-1200"
}
}
]
}
```
```jsonc
{
"lo... | 4dcf802ae3a7c51a6cac68724f4e0e17b447d861 | cae863a87fab961e8448769d55a79448fbee90fb | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 0fd1c767380a..424b57f39ada 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -1809,13 +1809,21 @@ func (c *Aes128Gcm) Build() (proto.Message, error) {
}
type Salamander struct {
- Password st... | [
"infra/conf/transport_internet.go",
"proxy/hysteria/protocol.go",
"transport/internet/finalmask/finalmask.go",
"transport/internet/finalmask/mkcp/aes128gcm/aes128gcm_test.go",
"transport/internet/finalmask/mkcp/aes128gcm/config.go",
"transport/internet/finalmask/mkcp/aes128gcm/conn.go",
"transport/inter... | [] | diff --git a/transport/internet/finalmask/mkcp/aes128gcm/aes128gcm_test.go b/transport/internet/finalmask/mkcp/aes128gcm/aes128gcm_test.go
deleted file mode 100644
index 4806dfc2c125..000000000000
--- a/transport/internet/finalmask/mkcp/aes128gcm/aes128gcm_test.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package aes128gcm_test
... | true | |
XTLS/Xray-core | 6,149 | issue_to_patch | Socks5 server: More standard UDP ASSOCIATE (RFC 1928) | 本来不想弄的 但是想了想监听随机UDP端口才是RFC规定的行为 那就搓一个吧
优势:没有鉴权问题 可以user路由 同端口不再有UDP监听
劣势:
性能会比以前更差
UDP生命周期和TCP绑定在一起(RFC规定) | 787aa7677b47c24f19aae84111d50ef4123072be | 3ad58b8750377fb68e7cf0f1c43887f97f54aa00 | diff --git a/proxy/socks/protocol.go b/proxy/socks/protocol.go
index 76ceb47c0820..bf4f61a5b762 100644
--- a/proxy/socks/protocol.go
+++ b/proxy/socks/protocol.go
@@ -1,14 +1,17 @@
package socks
import (
+ "context"
"encoding/binary"
"io"
+ gonet "net"
"github.com/xtls/xray-core/common"
"github.com/xtls/x... | [
"proxy/socks/protocol.go",
"proxy/socks/server.go",
"proxy/socks/temp_udp_listen.go",
"proxy/socks/udpfilter.go"
] | [
{
"comment": "只保留第一个判断",
"path": "proxy/socks/protocol.go",
"hunk": "@@ -208,11 +208,12 @@ func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, writer net.Co\n \t\t\treturn nil, nil, errors.New(\"failed to create UDP listener\").Base(err)\n \t\t}\n \t\tresponsePort = net.Port(udpHub.LocalA... | true | ||
XTLS/Xray-core | 6,149 | comment_to_fix | Socks5 server: More standard UDP ASSOCIATE (RFC 1928) | 只保留第一个判断 | 787aa7677b47c24f19aae84111d50ef4123072be | 3ad58b8750377fb68e7cf0f1c43887f97f54aa00 | diff --git a/proxy/socks/protocol.go b/proxy/socks/protocol.go
index 76ceb47c0820..bf4f61a5b762 100644
--- a/proxy/socks/protocol.go
+++ b/proxy/socks/protocol.go
@@ -1,14 +1,17 @@
package socks
import (
+ "context"
"encoding/binary"
"io"
+ gonet "net"
"github.com/xtls/xray-core/common"
"github.com/xtls/x... | [
"proxy/socks/protocol.go"
] | [
{
"comment": "只保留第一个判断",
"path": "proxy/socks/protocol.go",
"hunk": "@@ -208,11 +208,12 @@ func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, writer net.Co\n \t\t\treturn nil, nil, errors.New(\"failed to create UDP listener\").Base(err)\n \t\t}\n \t\tresponsePort = net.Port(udpHub.LocalA... | true | ||
XTLS/Xray-core | 6,193 | issue_to_patch | header-custom finalmask: Remove headerConnMode headerReadAddrAware interface | 先把框架回退到 175502d 之前,唯一的影响就是 udp header 用不了 `src_port_u16` `dst_port_u16` `src_ip4_u32` `dst_ip4_u32` 的变量,不影响 udp standalone,如果 @fatyzzz 认为 udp header 需要 addr,应当把 udp header 移除 header manager 而不是在 manager 改一堆只是为了 udp header | 787aa7677b47c24f19aae84111d50ef4123072be | 0a3e92877da25cd79dc63597e9e13728ba19e872 | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index 7bd481652b43..0fd1c767380a 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -1734,11 +1734,17 @@ func (c *HeaderCustomUDP) Build() (proto.Message, error) {
})
}
- return &custom.UDPConfig... | [
"common/serial/typed_message_test.go",
"infra/conf/transport_internet.go",
"infra/conf/transport_test.go",
"transport/internet/finalmask/finalmask.go",
"transport/internet/finalmask/header/custom/config.go",
"transport/internet/finalmask/header/custom/config.pb.go",
"transport/internet/finalmask/header/... | [] | diff --git a/common/serial/typed_message_test.go b/common/serial/typed_message_test.go
index 75d529fd7d8c..726a7733d3f0 100644
--- a/common/serial/typed_message_test.go
+++ b/common/serial/typed_message_test.go
@@ -4,7 +4,6 @@ import (
"testing"
. "github.com/xtls/xray-core/common/serial"
- "github.com/xtls/xray-... | true | |
XTLS/Xray-core | 6,197 | issue_to_patch | README.md: Add flutter_vless to Xray Wrapper in Others | Adds `flutter_vless` to the README under **Others that support VLESS, XTLS, REALITY, XUDP, PLUX... → Xray Wrapper**.
`flutter_vless` is a federated Flutter plugin for Xray/V2Ray-compatible VLESS, VMess, Trojan, Shadowsocks, and SOCKS flows, with proxy-only and VPN/tunnel support across Android, iOS, macOS, and Windows... | 787aa7677b47c24f19aae84111d50ef4123072be | bd76b3533b0d1d02016098143c9be8c74a2b1291 | diff --git a/README.md b/README.md
index a7dba7c3e3e1..cad3ce831b09 100644
--- a/README.md
+++ b/README.md
@@ -162,6 +162,7 @@
- [xtls-sdk](https://github.com/remnawave/xtls-sdk)
- [xtlsapi](https://github.com/hiddify/xtlsapi)
- [AndroidLibXrayLite](https://github.com/2dust/AndroidLibXrayLite)
+ - [flutter_vl... | [
"README.md"
] | [] | true | ||
XTLS/Xray-core | 6,207 | issue_to_patch | core stop randomly
### Integrity requirements
- [x] I have read all the comments in the issue template and ensured that this issue meet the requirements.
- [x] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or d... | DNS: Avoid panic on domain too long | Close #6204 | 787aa7677b47c24f19aae84111d50ef4123072be | 8557fb1a25fce54a1f82e122fcdf98354b40c8dd | diff --git a/app/dns/dnscommon.go b/app/dns/dnscommon.go
index 2092a2fd75e0..d16316b888e5 100644
--- a/app/dns/dnscommon.go
+++ b/app/dns/dnscommon.go
@@ -127,15 +127,20 @@ func genEDNS0Options(clientIP net.IP, padding int) *dnsmessage.Resource {
return opt
}
-func buildReqMsgs(domain string, option dns_feature.IP... | [
"app/dns/dnscommon.go",
"app/dns/dnscommon_test.go",
"app/dns/nameserver_doh.go",
"app/dns/nameserver_quic.go",
"app/dns/nameserver_tcp.go",
"app/dns/nameserver_udp.go"
] | [] | diff --git a/app/dns/dnscommon_test.go b/app/dns/dnscommon_test.go
index e77117c68a8e..fc73d20d813b 100644
--- a/app/dns/dnscommon_test.go
+++ b/app/dns/dnscommon_test.go
@@ -2,6 +2,7 @@ package dns
import (
"math/rand"
+ "strings"
"testing"
"time"
@@ -131,10 +132,15 @@ func Test_buildReqMsgs(t *testing.T) {... | true |
XTLS/Xray-core | 5,920 | issue_to_patch | header-custom finalmask: Add programmable handshake templates and runtime core | ## Summary
- extend `finalmask/header-custom` with programmable handshake templates for both TCP and UDP
- add deterministic `capture`, `reuse`, and `transform` fields together with flow-scoped state and runtime-derived metadata
- wire the template model into the existing `header-custom` runtime while keeping existing ... | 14e8ecfacf3343dc3da032f45f5b78f87cb76c21 | 7fb158c563c4522a2697b670af841dc48da2b45f | diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go
index b1c589f10f19..874c5c0b0cf6 100644
--- a/infra/conf/transport_internet.go
+++ b/infra/conf/transport_internet.go
@@ -8,6 +8,7 @@ import (
"math"
"net/url"
"os"
+ "regexp"
"runtime"
"strconv"
"strings"
@@ -1237,6 +1238,8 @@... | [
"infra/conf/transport_internet.go",
"infra/conf/transport_test.go",
"transport/internet/finalmask/finalmask.go",
"transport/internet/finalmask/header/custom/config.pb.go",
"transport/internet/finalmask/header/custom/config.proto",
"transport/internet/finalmask/header/custom/evaluator.go",
"transport/int... | [] | diff --git a/infra/conf/transport_test.go b/infra/conf/transport_test.go
index 87e5f92091f0..1912126ac992 100644
--- a/infra/conf/transport_test.go
+++ b/infra/conf/transport_test.go
@@ -2,10 +2,12 @@ package conf_test
import (
"encoding/json"
+ "strings"
"testing"
. "github.com/xtls/xray-core/infra/conf"
... | true | |
XTLS/Xray-core | 6,192 | issue_to_patch | Bump golang.org/x/net from 0.54.0 to 0.55.0 | Bumps [golang.org/x/net](https://github.com/golang/net) from 0.54.0 to 0.55.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/golang/net/commit/7770ec48d03fec35e378665337b4faca93c38423"><code>7770ec4</code></a> go.mod: update golang.org/x dependencies</li>
<li><a href="https://github.com/gola... | 787aa7677b47c24f19aae84111d50ef4123072be | 2873553d477e0f30eebad21cff64df2f9f532206 | diff --git a/go.mod b/go.mod
index 283c7253195d..e4c4b8e2ed2c 100644
--- a/go.mod
+++ b/go.mod
@@ -23,9 +23,9 @@ require (
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
golang.org/x/crypto v0.51.0
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
- golang.org/x/net v0.54.0
+ golang.org/x/net v0.55.0
golan... | [
"go.mod",
"go.sum"
] | [] | true | ||
XTLS/Xray-core | 6,123 | issue_to_patch | XDNS finalmask: Support AAAA & A | The aaaa mode served as the primary workhorse for this implementation, offering a significantly higher cost-performance ratio than mode a.
Example:
<strong>client config</strong>
```json
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"p... | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 72f7fdcacd102d0f37a49d824d65aec7eda3d420 | diff --git a/transport/internet/finalmask/xdns/client.go b/transport/internet/finalmask/xdns/client.go
index 7ceb7c50d22b..7513a0a9dab9 100644
--- a/transport/internet/finalmask/xdns/client.go
+++ b/transport/internet/finalmask/xdns/client.go
@@ -10,7 +10,6 @@ import (
"io"
"net"
"strconv"
- "strings"
"sync"
... | [
"transport/internet/finalmask/xdns/client.go",
"transport/internet/finalmask/xdns/dns.go",
"transport/internet/finalmask/xdns/dns_test.go",
"transport/internet/finalmask/xdns/record_transport.go",
"transport/internet/finalmask/xdns/server.go",
"transport/internet/finalmask/xdns/spec.go"
] | [] | diff --git a/transport/internet/finalmask/xdns/dns_test.go b/transport/internet/finalmask/xdns/dns_test.go
index 2ddc9da50273..45da317d43e7 100644
--- a/transport/internet/finalmask/xdns/dns_test.go
+++ b/transport/internet/finalmask/xdns/dns_test.go
@@ -593,3 +593,113 @@ func TestRDataTXTRoundTrip(t *testing.T) {
}... | true | |
XTLS/Xray-core | 6,170 | issue_to_patch | noise finalmask: Better `reset` | 无 reset 和之前相同,有 reset 在初始化后停止对应地址的 WriteTo 后才开始计算时间 | 787aa7677b47c24f19aae84111d50ef4123072be | fd3ef60882f99a7871099de4f8f79102db6cd612 | diff --git a/transport/internet/finalmask/noise/conn.go b/transport/internet/finalmask/noise/conn.go
index c3ab89ab4d09..cadb6bce1004 100644
--- a/transport/internet/finalmask/noise/conn.go
+++ b/transport/internet/finalmask/noise/conn.go
@@ -12,85 +12,42 @@ type noiseConn struct {
net.PacketConn
config *Config
m... | [
"transport/internet/finalmask/noise/conn.go"
] | [] | true | ||
XTLS/Xray-core | 6,186 | issue_to_patch | Hysteria server: `tls.WithNextProto("h3")` by default | 把服务端alpn调成默认h3(现阶段需要手动填写) 类似grpc默认h2 不然连不上
客户端不用改 因为quic-go好像客户端强制置h3 | ab69985fccb3206300c761cf1792258e53f82749 | 7106d8c711468e1b53109cc75d598c1ae503f6fd | diff --git a/transport/internet/hysteria/hub.go b/transport/internet/hysteria/hub.go
index 17088938f67e..d20313b5d031 100644
--- a/transport/internet/hysteria/hub.go
+++ b/transport/internet/hysteria/hub.go
@@ -309,7 +309,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
tr := &q... | [
"transport/internet/hysteria/hub.go"
] | [] | true | ||
XTLS/Xray-core | 6,162 | issue_to_patch | SS2022 inbound: Fix potential panic when dispatching | 读取addr时之前这个构造函数可能传出无效地址导致dispatcher panic
之前那个r/w超时彻底换成平时基于timer的timeout控制 | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 154acee609539692378490a80e0db792ca98ed0e | diff --git a/common/singbridge/destination.go b/common/singbridge/destination.go
index 98aed2587119..217c4d082810 100644
--- a/common/singbridge/destination.go
+++ b/common/singbridge/destination.go
@@ -3,6 +3,7 @@ package singbridge
import (
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing... | [
"common/singbridge/destination.go",
"common/singbridge/dialer.go",
"common/singbridge/handler.go",
"common/singbridge/packet.go",
"common/singbridge/pipe.go",
"proxy/shadowsocks_2022/inbound.go",
"proxy/shadowsocks_2022/inbound_multi.go",
"proxy/shadowsocks_2022/inbound_relay.go",
"proxy/shadowsocks... | [] | true | ||
XTLS/Xray-core | 6,153 | issue_to_patch | README.md: Remove Xray4Magisk; Add AsteriskNG to Android in GUI Clients | …roid client
#6152
delete repo by mistake. | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 69d46c9583802f2d4161aa2bca1ba37ed676a3d9 | diff --git a/README.md b/README.md
index fdde7bde63ef..a7dba7c3e3e1 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,6 @@
- [Xray_bash_onekey](https://github.com/hello-yunshu/Xray_bash_onekey), [XTool](https://github.com/LordPenguin666/XTool), [VPainLess](https://github.com/vpainless/vpainless)
- [v2ray-agent]... | [
"README.md"
] | [] | true | ||
XTLS/Xray-core | 6,156 | issue_to_patch | Missing implementation for tolerance logic in leastLoad balancer
In the `leastLoad` balancer, there is a field called `tolerance`. Although the configuration interface for this field exists, it seems that the functionality is not fully implemented.
I would like to request completing the implementation for this part. ... | leastLoad balancer: Implement missing `tolerance` | close #6154
不知道为什么配置都解析了最后这个条件没放进去 | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 39f9fb1ffbb53ab37137256efddfd2e9cd3a7daf | diff --git a/app/router/strategy_leastload.go b/app/router/strategy_leastload.go
index 1bf3cbc09a22..289982a84739 100644
--- a/app/router/strategy_leastload.go
+++ b/app/router/strategy_leastload.go
@@ -3,6 +3,7 @@ package router
import (
"context"
"math"
+ "slices"
"sort"
"time"
@@ -77,7 +78,7 @@ func (s *L... | [
"app/router/strategy_leastload.go"
] | [] | true | |
XTLS/Xray-core | 6,140 | issue_to_patch | XHTTP client: Fix packet-up `OpenUsage` counting and H3 `keepAlivePeriod` parameter | 之前加 quicParam 的时候把本来xmux里的keepalive参数直接无视了(虽然它们确实指向一个字段)
所以现在先看 quicParm 再看xmux
顺便修一下一个小计数泄露(不是内存泄漏) | ab69985fccb3206300c761cf1792258e53f82749 | 1ec3ad752f99242abc3c1c28479665d652870a49 | diff --git a/transport/internet/splithttp/dialer.go b/transport/internet/splithttp/dialer.go
index f89c71ed9a07..1329713c5f81 100644
--- a/transport/internet/splithttp/dialer.go
+++ b/transport/internet/splithttp/dialer.go
@@ -183,6 +183,8 @@ func createHTTPClient(dest net.Destination, streamSettings *internet.MemorySt... | [
"transport/internet/splithttp/dialer.go"
] | [] | true | ||
XTLS/Xray-core | 6,159 | issue_to_patch | Config: Warn when `sockopt.trustedXForwardedFor` is not set for XHTTP/WS/HU inbounds | https://github.com/XTLS/Xray-core/pull/6110#issuecomment-4470157219
未设置时~恐吓~警告用户 | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 1fc860237b65118cb4cedb4cbb508c2ef1668de7 | diff --git a/infra/conf/xray.go b/infra/conf/xray.go
index d01dac2bf683..a077af5edf7a 100644
--- a/infra/conf/xray.go
+++ b/infra/conf/xray.go
@@ -173,6 +173,26 @@ func (c *InboundDetourConfig) Build() (*core.InboundHandlerConfig, error) {
return nil, err
}
receiverSettings.StreamSettings = ss
+ // TODO: Act... | [
"infra/conf/xray.go"
] | [] | true | ||
XTLS/Xray-core | 6,139 | issue_to_patch | Geodata: Cleanup unneeded shared matchers (weakly referenced in map) | 前段时间发现go竟然有弱引用包了 刚好可以用来清理被复用的 matcher 实例 如果有rule被api增减 GC可以自动回收掉悬空的已构建结果 | 1bdb488c9ec09ea51e6899697d5b7437f3cf6eb2 | 6534bbf4b26e1cb2528ff265b7d3eca3091c4da7 | diff --git a/common/geodata/domain_matcher.go b/common/geodata/domain_matcher.go
index be9e62bf46ce..2c231d98c3d9 100644
--- a/common/geodata/domain_matcher.go
+++ b/common/geodata/domain_matcher.go
@@ -8,6 +8,7 @@ import (
"github.com/xtls/xray-core/common/errors"
"github.com/xtls/xray-core/common/geodata/strmat... | [
"common/geodata/domain_matcher.go",
"common/geodata/domain_matcher_test.go",
"common/geodata/ip_matcher.go",
"common/utils/weak_cache.go"
] | [] | diff --git a/common/geodata/domain_matcher_test.go b/common/geodata/domain_matcher_test.go
index 83ae60ca96c3..0c0c5080c9d4 100644
--- a/common/geodata/domain_matcher_test.go
+++ b/common/geodata/domain_matcher_test.go
@@ -7,10 +7,11 @@ import (
"testing"
"github.com/xtls/xray-core/common/geodata/strmatcher"
+ "g... | true | |
XTLS/Xray-core | 6,015 | issue_to_patch | TUN inbound: Reply fake pong to ICMP ping | AI coding by Copilot / gpt-5.4 xhigh.
Only ICMP echo, not full support.
Well tested on iOS, macOS, Android, Windows and Linux.
Just `fake pong`, the rewriting of https://github.com/XTLS/badvpn/commit/c440609ca7fb8b85d83d528526b3f02c1a63376d | b4f08981becb71eaa995fa98ed2098ade92566bb | 832e040608ebb7ad17151a8662b091c85e2dc3c4 | diff --git a/proxy/tun/README.md b/proxy/tun/README.md
index 51aaea37ffb6..2b9e0a428a1a 100644
--- a/proxy/tun/README.md
+++ b/proxy/tun/README.md
@@ -41,10 +41,12 @@ Here is simple Xray config snippet to enable the inbound:
- IPv4 and IPv6
- TCP and UDP
+- ICMP Echo (ping)
## LIMITATION
-- No ICMP support
+- ... | [
"proxy/tun/README.md",
"proxy/tun/icmp/packet.go",
"proxy/tun/icmp/packet_test.go",
"proxy/tun/stack_gvisor.go",
"proxy/tun/stack_gvisor_icmp_handler.go"
] | [
{
"comment": "ICMP echo requests spawn an unbounded goroutine per packet. A client behind the TUN can flood echo requests and drive excessive goroutines, socket opens, and memory allocations, leading to CPU/FD exhaustion. Consider adding a bounded concurrency mechanism (e.g., semaphore/worker pool) and dropping... | diff --git a/proxy/tun/icmp/packet_test.go b/proxy/tun/icmp/packet_test.go
new file mode 100644
index 000000000000..bb75986839fb
--- /dev/null
+++ b/proxy/tun/icmp/packet_test.go
@@ -0,0 +1,174 @@
+package icmp
+
+import (
+ "testing"
+
+ "gvisor.dev/gvisor/pkg/tcpip"
+ "gvisor.dev/gvisor/pkg/tcpip/checksum"
+ "gvisor.... | true | |
XTLS/Xray-core | 6,015 | comment_to_fix | TUN inbound: Reply fake pong to ICMP ping | ICMP echo requests spawn an unbounded goroutine per packet. A client behind the TUN can flood echo requests and drive excessive goroutines, socket opens, and memory allocations, leading to CPU/FD exhaustion. Consider adding a bounded concurrency mechanism (e.g., semaphore/worker pool) and dropping/ignoring new echo req... | b4f08981becb71eaa995fa98ed2098ade92566bb | 832e040608ebb7ad17151a8662b091c85e2dc3c4 | diff --git a/proxy/tun/stack_gvisor_icmp_handler.go b/proxy/tun/stack_gvisor_icmp_handler.go
new file mode 100644
index 000000000000..17ba692bf960
--- /dev/null
+++ b/proxy/tun/stack_gvisor_icmp_handler.go
@@ -0,0 +1,98 @@
+package tun
+
+import (
+ "github.com/xtls/xray-core/common/errors"
+ tunicmp "github.com/xtls/x... | [
"proxy/tun/stack_gvisor_icmp_handler.go"
] | [
{
"comment": "ICMP echo requests spawn an unbounded goroutine per packet. A client behind the TUN can flood echo requests and drive excessive goroutines, socket opens, and memory allocations, leading to CPU/FD exhaustion. Consider adding a bounded concurrency mechanism (e.g., semaphore/worker pool) and dropping... | true | ||
XTLS/Xray-core | 6,015 | comment_to_fix | TUN inbound: Reply fake pong to ICMP ping | forwardICMPEcho opens and closes a new ICMP socket for every echo request. Under normal ping behavior (and especially under loss where retries happen), this can create significant overhead and increase the risk of hitting OS file-descriptor/socket limits. Consider reusing PacketConn(s) (e.g., keyed by netProto/network)... | b4f08981becb71eaa995fa98ed2098ade92566bb | 832e040608ebb7ad17151a8662b091c85e2dc3c4 | diff --git a/proxy/tun/stack_gvisor_icmp_handler.go b/proxy/tun/stack_gvisor_icmp_handler.go
new file mode 100644
index 000000000000..17ba692bf960
--- /dev/null
+++ b/proxy/tun/stack_gvisor_icmp_handler.go
@@ -0,0 +1,98 @@
+package tun
+
+import (
+ "github.com/xtls/xray-core/common/errors"
+ tunicmp "github.com/xtls/x... | [
"proxy/tun/stack_gvisor_icmp_handler.go"
] | [
{
"comment": "forwardICMPEcho opens and closes a new ICMP socket for every echo request. Under normal ping behavior (and especially under loss where retries happen), this can create significant overhead and increase the risk of hitting OS file-descriptor/socket limits. Consider reusing PacketConn(s) (e.g., keye... | true | ||
XTLS/Xray-core | 6,015 | comment_to_fix | TUN inbound: Reply fake pong to ICMP ping | Logging every ICMP echo request/reply at info level can generate very high log volume (pings are often frequent / can be abused). Consider downgrading these to debug/trace, adding sampling/rate limiting, or logging only failures/summary counters. | b4f08981becb71eaa995fa98ed2098ade92566bb | 832e040608ebb7ad17151a8662b091c85e2dc3c4 | diff --git a/proxy/tun/stack_gvisor_icmp_handler.go b/proxy/tun/stack_gvisor_icmp_handler.go
new file mode 100644
index 000000000000..17ba692bf960
--- /dev/null
+++ b/proxy/tun/stack_gvisor_icmp_handler.go
@@ -0,0 +1,98 @@
+package tun
+
+import (
+ "github.com/xtls/xray-core/common/errors"
+ tunicmp "github.com/xtls/x... | [
"proxy/tun/stack_gvisor_icmp_handler.go"
] | [
{
"comment": "Logging every ICMP echo request/reply at info level can generate very high log volume (pings are often frequent / can be abused). Consider downgrading these to debug/trace, adding sampling/rate limiting, or logging only failures/summary counters.",
"path": "proxy/tun/stack_gvisor_icmp_handler.... | true | ||
YOURLS/YOURLS | 4,123 | issue_to_patch | Bump shivammathur/setup-php from 2.37.1 to 2.37.2 | Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2.37.1 to 2.37.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/shivammathur/setup-php/releases">shivammathur/setup-php's releases</a>.</em></p>
<blockquote>
<h2>2.37.2</h2>
<h2>Changelog</h2>
<ul... | 1933887362f6db9ffb218387098079c9dbb9e6a4 | 700c2e9871ca5eb5f900a41b1b1b41ab63b04adf | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 86a290a81..bf447a4a3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v6
- name: Use PHP ${{ matrix.php }}
- uses: shivammathur/setup-php@2.37.1
+ uses: shiva... | [
".github/workflows/ci.yml"
] | [] | true | ||
YOURLS/YOURLS | 4,121 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-06-08.
Source: https://www.maxmind.com/en/account/login | 15a9ad52e39c98c53512d65b3f202679224cd091 | aa738606cc8d8256c5c136de1d2aebb5ccc6ae55 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 606fa9447..f4032bc09 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,111 | issue_to_patch | Misc security hardenings | Misc security improvement, per our private discussion.
Probable plan :
* [x] phase out md5 (**F1**)
* [x] replace `===` with `hash_equals()` where appropriate (**F2**)
* [x] default to REMOTE_ADDR only when no trusted proxy is configured (**F3**).
* [x] increase API signature length (**F4**)
* [ ] ~~remote t... | f01c08f2201479500838101703518fac6f245876 | b9f25dbd3a0362be557815656e845d99d65b791c | diff --git a/admin/tools.php b/admin/tools.php
index b77206169..1673712d5 100644
--- a/admin/tools.php
+++ b/admin/tools.php
@@ -318,8 +318,8 @@
<pre><code><?php
$timestamp = time();
<tt>// <?php yourls_e( 'actual value:' ); ?> $time = <?php $time = time(); echo $time; ?></tt>
-$signature = md5( $timestamp . '<?p... | [
"admin/tools.php",
"includes/auth.php",
"includes/functions-auth.php",
"includes/functions-formatting.php",
"includes/functions-html.php",
"includes/functions.php",
"tests/tests/auth/LoginAPISecureTimeTokenTest.php",
"tests/tests/auth/SigTest.php",
"tests/tests/format/EscTest.php",
"tests/tests/ut... | [
{
"comment": "Could be replaced with `str_starts_with()`",
"path": "includes/functions-auth.php",
"hunk": "",
"resolving_sha": "b9f25dbd3a0362be557815656e845d99d65b791c",
"resolving_diff": "diff --git a/includes/functions-auth.php b/includes/functions-auth.php\nindex db6bbd9c8..8704864cf 100644\... | diff --git a/tests/tests/auth/LoginAPISecureTimeTokenTest.php b/tests/tests/auth/LoginAPISecureTimeTokenTest.php
index 60511d74e..5b2a6f06f 100644
--- a/tests/tests/auth/LoginAPISecureTimeTokenTest.php
+++ b/tests/tests/auth/LoginAPISecureTimeTokenTest.php
@@ -14,7 +14,7 @@ class LoginAPISecureTimeTokenTest extends Abs... | true | |
YOURLS/YOURLS | 4,111 | comment_to_fix | Misc security hardenings | Could be replaced with `str_starts_with()` | f01c08f2201479500838101703518fac6f245876 | b9f25dbd3a0362be557815656e845d99d65b791c | diff --git a/includes/functions-auth.php b/includes/functions-auth.php
index db6bbd9c8..8704864cf 100644
--- a/includes/functions-auth.php
+++ b/includes/functions-auth.php
@@ -49,7 +49,7 @@ function yourls_is_valid_user() {
// Determine auth method and check credentials
if
// API only: Secure (no lo... | [
"includes/functions-auth.php"
] | [
{
"comment": "Could be replaced with `str_starts_with()`",
"path": "includes/functions-auth.php",
"hunk": "",
"resolving_sha": "b9f25dbd3a0362be557815656e845d99d65b791c",
"resolving_diff": "diff --git a/includes/functions-auth.php b/includes/functions-auth.php\nindex db6bbd9c8..8704864cf 100644\... | true | ||
YOURLS/YOURLS | 4,111 | comment_to_fix | Misc security hardenings | ```php
$ip = explode(',', $ip, 1)[0]
``` | f01c08f2201479500838101703518fac6f245876 | b9f25dbd3a0362be557815656e845d99d65b791c | diff --git a/includes/functions.php b/includes/functions.php
index d259f4df6..15890ef8e 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -17,29 +17,90 @@ function yourls_make_regexp_pattern( $string ) {
}
/**
- * Get client IP Address. Returns a DB safe string.
+ * Get client IP Address. Returns ... | [
"includes/functions.php"
] | [
{
"comment": "```php\n$ip = explode(',', $ip, 1)[0]\n```",
"path": "includes/functions.php",
"hunk": "@@ -17,29 +17,92 @@ function yourls_make_regexp_pattern( $string ) {\n }\n \n /**\n- * Get client IP Address. Returns a DB safe string.\n+ * Get client IP Address. Returns a DB safe string. May not be a... | true | ||
YOURLS/YOURLS | 4,111 | comment_to_fix | Misc security hardenings | `substr` => `str_starts_with` | f01c08f2201479500838101703518fac6f245876 | b9f25dbd3a0362be557815656e845d99d65b791c | diff --git a/includes/functions-auth.php b/includes/functions-auth.php
index db6bbd9c8..8704864cf 100644
--- a/includes/functions-auth.php
+++ b/includes/functions-auth.php
@@ -49,7 +49,7 @@ function yourls_is_valid_user() {
// Determine auth method and check credentials
if
// API only: Secure (no lo... | [
"includes/functions-auth.php"
] | [
{
"comment": "`substr` => `str_starts_with`",
"path": "includes/functions-auth.php",
"hunk": "@@ -463,16 +463,29 @@ function yourls_check_signature() {\n /**\n * Generate secret signature hash\n *\n- * @param false|string $username Username to generate signature for, or false to use current user\n+ *... | true | ||
YOURLS/YOURLS | 4,115 | issue_to_patch | Update checks for min PHP & MySQL requirements | * PHP 8.1 as advertised since long
* MySQL 5.5 as per proposal in #4114 | 8bec733e7cd68982fcae05d5f69c1338f691e5e5 | 6351df1a8766a7354804ca2a21f157afff4049c8 | diff --git a/includes/functions-install.php b/includes/functions-install.php
index cbcd6c78a..f89400164 100644
--- a/includes/functions-install.php
+++ b/includes/functions-install.php
@@ -11,12 +11,15 @@ function yourls_check_PDO() {
}
/**
- * Check if server has MySQL 5.0+
+ * Check if server has MySQL 5.5+
+ *
+... | [
"includes/functions-install.php",
"tests/tests/install/VersionTest.php"
] | [] | diff --git a/tests/tests/install/VersionTest.php b/tests/tests/install/VersionTest.php
index 7b1ff630d..c4542912c 100644
--- a/tests/tests/install/VersionTest.php
+++ b/tests/tests/install/VersionTest.php
@@ -43,7 +43,7 @@ public function test_mysql_version( $version, $sanitized ) {
yourls_set_db( new Mock_Ver... | true | |
YOURLS/YOURLS | 4,091 | issue_to_patch | Bump phpunit/phpunit from 11.5.50 to 12.5.22 in /tests in the composer group across 1 directory | Bumps the composer group with 1 update in the /tests directory: [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit).
Updates `phpunit/phpunit` from 11.5.50 to 12.5.22
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sebastianbergmann/phpunit/releases">phpunit/phpun... | d1d1932dacb55c8eef2b4eef31f64e8f56f02b68 | cf39e8790a7efa3c3d3cdc7438ba1fd08144d576 | [
"tests/composer.lock"
] | [] | diff --git a/tests/composer.lock b/tests/composer.lock
index 4117ba6cb..4c7b39571 100644
--- a/tests/composer.lock
+++ b/tests/composer.lock
@@ -244,16 +244,16 @@
},
{
"name": "phpunit/php-code-coverage",
- "version": "11.0.12",
+ "version": "12.5.6",
"s... | true | ||
YOURLS/YOURLS | 4,120 | issue_to_patch | Fix vendor directory path in phpunit.xml.dist | Duh... | a9efbe0c99a1d2269fab5945b1ef6c4710928d78 | b8f101d2701c83a856dad85cab7873f21b545da7 | diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 75d932c19..a0c2ede59 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -21,7 +21,7 @@
<directory suffix=".php">./includes</directory>
</include>
<exclude>
- <directory suffix=".php">./includes/vendors</directory>
+ ... | [
"phpunit.xml.dist"
] | [] | true | ||
YOURLS/YOURLS | 4,113 | issue_to_patch | Remove phpunit6-compat.php | Empty file and not referenced anywhere
| 9b96d3a49af92e75fa637652488a7974ff943979 | 78e536d45ab22e6f35ab7ef8b99890384250d761 | [
"tests/includes/phpunit6-compat.php"
] | [] | diff --git a/tests/includes/phpunit6-compat.php b/tests/includes/phpunit6-compat.php
deleted file mode 100644
index e69de29bb..000000000
| true | ||
YOURLS/YOURLS | 4,119 | issue_to_patch | Enhance cookies with prefixes
As of writing, Firefox and Chrome support "cookie prefixes". Investigate this.
> The `__Secure-` prefix makes a cookie accessible from HTTPS sites only. A HTTP site can not read or update a cookie if the name starts with `__Secure-`. This protects against the attack we earlier describe... | Implement cookie prefixes | Idea surfaced 6 years ago, and [browser support](https://caniuse.com/mdn-http_headers_set-cookie_host_secure_prefixes) is mature now.
Add `__Host-` / `__Secure-` cookie name prefixes to the auth cookie for browser-side hardening on HTTPS installs.
Closes #2785
| 41e4b5e171114a4bb617842519ad746ade05490a | 5b631809260e175ed7a05ed57c22975ac36c5db1 | diff --git a/includes/functions-auth.php b/includes/functions-auth.php
index 8a702b845..db6bbd9c8 100644
--- a/includes/functions-auth.php
+++ b/includes/functions-auth.php
@@ -451,7 +451,7 @@ function yourls_check_timestamp( $time ) {
* @param string $user User login, or empty string to delete cookie
* @return vo... | [
"includes/functions-auth.php",
"tests/tests/auth/LoginCookieTest.php"
] | [] | diff --git a/tests/tests/auth/LoginCookieTest.php b/tests/tests/auth/LoginCookieTest.php
index 5c76a90a7..4b992c1b8 100644
--- a/tests/tests/auth/LoginCookieTest.php
+++ b/tests/tests/auth/LoginCookieTest.php
@@ -1,8 +1,6 @@
<?php
/**
- * Login tests - via Cookies
- *
- * @since 0.1
+ * Login tests - via Cookies - an... | true |
YOURLS/YOURLS | 4,116 | issue_to_patch | Logging the `Host` header value
### Proposed functionality
Logging the value of the `Host` header (so whatever domain the user clicked on) in the `yourls_log` table. Eventually it could be added to the UI, but I don't mind looking in the datatabase for this.
### Use case
I've got multiple domains (say, foo.example.... | New action to allow custom redirect logging | Trivial stuff.
Closes #3990
| 12c3eb56029ae59652fc467b5cf8ec3a3e530505 | 0f09a19b280e7286003660ffb84b2ed07d017b34 | diff --git a/includes/functions.php b/includes/functions.php
index 2b0ff5e21..d259f4df6 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -535,6 +535,9 @@ function yourls_log_redirect( $keyword ) {
'location' => yourls_geo_ip_to_countrycode($ip),
];
+ // Action to allow plugins to l... | [
"includes/functions.php"
] | [
{
"comment": "I'm not sure this fulfills the original feature request, which was to log the `Host` header value. Can't multiple domains point to the same YOURLS instance with a single config and only one of those domains mentioned in `YOURLS_SITE`?",
"path": "includes/functions.php",
"hunk": "@@ -535,6 ... | true | |
YOURLS/YOURLS | 4,116 | comment_to_fix | New action to allow custom redirect logging | I'm not sure this fulfills the original feature request, which was to log the `Host` header value. Can't multiple domains point to the same YOURLS instance with a single config and only one of those domains mentioned in `YOURLS_SITE`? | 12c3eb56029ae59652fc467b5cf8ec3a3e530505 | 0f09a19b280e7286003660ffb84b2ed07d017b34 | diff --git a/includes/functions.php b/includes/functions.php
index 2b0ff5e21..d259f4df6 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -535,6 +535,9 @@ function yourls_log_redirect( $keyword ) {
'location' => yourls_geo_ip_to_countrycode($ip),
];
+ // Action to allow plugins to l... | [
"includes/functions.php"
] | [
{
"comment": "I'm not sure this fulfills the original feature request, which was to log the `Host` header value. Can't multiple domains point to the same YOURLS instance with a single config and only one of those domains mentioned in `YOURLS_SITE`?",
"path": "includes/functions.php",
"hunk": "@@ -535,6 ... | true | ||
YOURLS/YOURLS | 4,116 | comment_to_fix | New action to allow custom redirect logging | Removing the variable name looks like a typo.
```suggestion
$binds = [
``` | 12c3eb56029ae59652fc467b5cf8ec3a3e530505 | 0f09a19b280e7286003660ffb84b2ed07d017b34 | diff --git a/includes/functions.php b/includes/functions.php
index 2b0ff5e21..d259f4df6 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -535,6 +535,9 @@ function yourls_log_redirect( $keyword ) {
'location' => yourls_geo_ip_to_countrycode($ip),
];
+ // Action to allow plugins to l... | [
"includes/functions.php"
] | [
{
"comment": "Removing the variable name looks like a typo.\r\n\r\n```suggestion\r\n $binds = [\r\n```",
"path": "includes/functions.php",
"hunk": "@@ -526,7 +526,7 @@ function yourls_log_redirect( $keyword ) {\n \n $table = YOURLS_DB_TABLE_LOG;\n $ip = yourls_get_IP();\n- $binds = [\n+ ... | true | ||
YOURLS/YOURLS | 4,118 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-06-01.
Source: https://www.maxmind.com/en/account/login | 91a2772351617a979311a643cc94b5728ef9e52c | 1ecb5cb734e781a290372b0d631b1b5f0c621526 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 065694766..606fa9447 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,109 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-05-25.
Source: https://www.maxmind.com/en/account/login | 47b0d471b9017c445aff81fe3c9e85ade67b98e9 | 7d3c02f3aaeae9133b1ae74bd42e82507e4bedc3 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index c3e29bdba..065694766 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,066 | issue_to_patch | Flag password file as user auth from environment variables | Closes https://github.com/YOURLS/containers/pull/468 | 597031f9adbb4ccf5543409600a206edabab6757 | eb2a77db8703bf15eb06b74046657f21e1b079c0 | diff --git a/includes/functions-auth.php b/includes/functions-auth.php
index c574576c3..8a702b845 100644
--- a/includes/functions-auth.php
+++ b/includes/functions-auth.php
@@ -702,14 +702,13 @@ function yourls_verify_nonce($action, $nonce = false, $user = false, $return = '
}
/**
- * Check if YOURLS_USER comes fro... | [
"includes/functions-auth.php"
] | [] | true | ||
YOURLS/YOURLS | 4,075 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-03-09.
Source: https://www.maxmind.com/en/account/login | 71f8fe13f2c5658b1fa0a53729a40f310bbd0f56 | 16d8d9d0dd7d2156cf7fceb065e2e38880161ac7 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index f51bdd7c3..2f77e5874 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,079 | issue_to_patch | Bump shivammathur/setup-php from 2.36.0 to 2.37.0 | Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2.36.0 to 2.37.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/shivammathur/setup-php/releases">shivammathur/setup-php's releases</a>.</em></p>
<blockquote>
<h2>2.37.0</h2>
<h2>Changelog</h2>
<ul... | 1306e12fb44db02188ad2597d262716df24dbdd9 | e0b425c85bee3643f2b031a8bed0c1f5de946984 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index aea15a584..262fa8be1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v6
- name: Use PHP ${{ matrix.php }}
- uses: shivammathur/setup-php@2.36.0
+ uses: shiva... | [
".github/workflows/ci.yml"
] | [] | true | ||
YOURLS/YOURLS | 4,078 | issue_to_patch | Bump actions/create-github-app-token from 2 to 3 | Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2 to 3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/create-github-app-token/releases">actions/create-github-app-token's releases</a>.</em></p>
<blockquote>
<h2>v3.0.0</... | 853155dcb9fb04bede6b7e1e10422ed1c96921e2 | ea277f1e49cc8c822d1c45a1e2c6595e007f3359 | diff --git a/.github/workflows/update-certificates.yml b/.github/workflows/update-certificates.yml
index c583fbd1a..6e57fa67e 100644
--- a/.github/workflows/update-certificates.yml
+++ b/.github/workflows/update-certificates.yml
@@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@v6
- name: Generate token
... | [
".github/workflows/update-certificates.yml",
".github/workflows/update-geoip.yml",
".github/workflows/update-translations.yml"
] | [] | true | ||
YOURLS/YOURLS | 4,080 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-03-16.
Source: https://www.maxmind.com/en/account/login | 439c6ccb0e66276f7f1643144506a88239ebac33 | 969b84e2423e03e3213d06f03f2884df10e8e129 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 2f77e5874..77d1e241e 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,081 | issue_to_patch | Update README to include angel sponsors | Added new angel sponsors section with first "Angel Sponsor"
(Feel free to propose another wording / styling) | 701301905228a507283aae3535170bde60d610bb | 3c6a53d04be6c03534a8db8433d4cffe10be7d1b | diff --git a/README.md b/README.md
index 1a57344bf..53e12637b 100644
--- a/README.md
+++ b/README.md
@@ -89,6 +89,15 @@ Does your company use YOURLS? Ask your manager or marketing team if your company
[](https://opencollective.com/yourls/sponsor/17/website)
... | [
"README.md"
] | [
{
"comment": "Nitpick:\r\n\r\n```suggestion\r\nFor their outstanding support to the project, we are very thankful to:\r\n```",
"path": "README.md",
"hunk": "@@ -89,6 +89,15 @@ Does your company use YOURLS? Ask your manager or marketing team if your company\n [](https://opencollective.com/yourls/sponsor/17/website)
... | [
"README.md"
] | [
{
"comment": "Nitpick:\r\n\r\n```suggestion\r\nFor their outstanding support to the project, we are very thankful to:\r\n```",
"path": "README.md",
"hunk": "@@ -89,6 +89,15 @@ Does your company use YOURLS? Ask your manager or marketing team if your company\n [: voi... | [
"includes/Database/Logger.php",
"includes/Database/YDB.php",
"includes/class-mysql.php",
"includes/functions.php",
"tests/tests/debug/DebugLogTest.php"
] | [] | diff --git a/tests/tests/debug/DebugLogTest.php b/tests/tests/debug/DebugLogTest.php
index 20b133a0a..0139df91b 100644
--- a/tests/tests/debug/DebugLogTest.php
+++ b/tests/tests/debug/DebugLogTest.php
@@ -49,7 +49,7 @@ public function test_debug_mode_sets_error_reporting() {
yourls_debug_mode(true);
$... | true | |
YOURLS/YOURLS | 4,087 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-04-06.
Source: https://www.maxmind.com/en/account/login | df4ede5f18ef484ada85309e5d8208c431f3e605 | 28d9e140ae3337348dcad2de61e98aa6a4c7b2e6 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 2501e64b3..9ccb06bcd 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,088 | issue_to_patch | Remove current Angel Sponsors section | Text & tags left as comment to be used next time | af2c1c724127c59a10b15fef269b06e6eb106c05 | 658afd726ee17622eacb5e3fb450bb8b4103e910 | diff --git a/README.md b/README.md
index 53e12637b..7016843e8 100644
--- a/README.md
+++ b/README.md
@@ -93,12 +93,13 @@ Does your company use YOURLS? Ask your manager or marketing team if your company
[](https://opencollective.com/yourls/sponsor/21/website)
... | [
"README.md"
] | [] | true | ||
YOURLS/YOURLS | 4,090 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-04-13.
Source: https://www.maxmind.com/en/account/login | 2e85bd81c8cfbf3918192bd74371db029fe1d655 | 5c5f44bb18ddc5ba72eb1ea1a75000d84cabeded | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 9ccb06bcd..e47ec55a4 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,094 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-04-20.
Source: https://www.maxmind.com/en/account/login | 7fcc920f64c74e822d7f6f4afdee2a98dea47b01 | 99c3e1a1dc65e29ee4cb84a874c33a2857378a3e | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index e47ec55a4..564b4b052 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,098 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-04-27.
Source: https://www.maxmind.com/en/account/login | 89019efb334325058498e53ad5272a69c0170c8b | 27fa22dd7e129b21c003a8fd1192435ce1b8d9ef | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 564b4b052..255104af7 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,099 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-05-04.
Source: https://www.maxmind.com/en/account/login | f2ea0c9838ee8ef88725f61db22d0f63f13f8935 | a7a055408175009ae245b078f07ab49b175814a5 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 255104af7..95c1d6992 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true | ||
YOURLS/YOURLS | 4,102 | issue_to_patch | Update GeoIP DB | Updated GeoIP database, last verified on 2026-05-11.
Source: https://www.maxmind.com/en/account/login | da9333b92e64ae2857eeaf68b968c88f21a793a6 | e9522bdc4771536d12d054820dec528917ce48d3 | diff --git a/includes/geo/GeoLite2-Country.mmdb b/includes/geo/GeoLite2-Country.mmdb
index 95c1d6992..0c058ff45 100644
Binary files a/includes/geo/GeoLite2-Country.mmdb and b/includes/geo/GeoLite2-Country.mmdb differ
| [
"includes/geo/GeoLite2-Country.mmdb"
] | [] | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.