Skip to content

Commit fe0c5c9

Browse files
Update main.go
1 parent 2215b2f commit fe0c5c9

1 file changed

Lines changed: 22 additions & 30 deletions

File tree

main.go

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3961,31 +3961,7 @@ func writeSummary(results []configResult, failedLinks []string, duration float64
39613961
}
39623962
}
39633963
w.WriteString("\n")
3964-
3965-
// ── SNI Files table ───────────────────────────────────────────────────────
3966-
w.WriteString("### SNI Configs (server=127.0.0.1, port=40443)\n\n")
3967-
w.WriteString("> These configs have the server address replaced with `127.0.0.1:40443`.\n")
3968-
w.WriteString("> Use them with a local tunnel or gateway that forwards to the real server.\n")
3969-
w.WriteString("> All TLS SNI/peer fields are preserved so TLS handshake still works correctly.\n\n")
3970-
fmt.Fprintf(w, "| File | Link |\n|---|---|\n")
3971-
fmt.Fprintf(w, "| All SNI configs (txt) | [all_configs_sni.txt](%s/config/sni/all_configs_sni.txt) |\n", repoBase)
3972-
fmt.Fprintf(w, "| clash_sni.yaml (all protocols) | [clash_sni.yaml](%s/config/sni/clash_sni.yaml) |\n", repoBase)
3973-
fmt.Fprintf(w, "| clash_advanced_sni.yaml | [clash_advanced_sni.yaml](%s/config/sni/clash_advanced_sni.yaml) |\n", repoBase)
3974-
w.WriteString("\n")
3975-
3976-
w.WriteString("#### SNI — By Protocol\n\n")
3977-
fmt.Fprintf(w, "| Protocol | Count | V2ray | Clash | Clash Advanced |\n|---|---|---|---|---|\n")
3978-
for _, p := range cfg.ProtocolOrder {
3979-
if n := byProtoOut[p]; n > 0 {
3980-
fmt.Fprintf(w, "| %s | %d | [%s_sni.txt](%s/config/sni/protocols/%s_sni.txt) | [%s_clash_sni.yaml](%s/config/sni/protocols/%s_clash_sni.yaml) | [%s_clash_advanced_sni.yaml](%s/config/sni/protocols/%s_clash_advanced_sni.yaml) |\n",
3981-
strings.ToUpper(p), n,
3982-
p, repoBase, p,
3983-
p, repoBase, p,
3984-
p, repoBase, p)
3985-
}
3986-
}
3987-
w.WriteString("\n")
3988-
3964+
39893965
w.WriteString("---\n\n")
39903966
w.WriteString("## Batch Files — Random 500-Config Groups\n\n")
39913967
w.WriteString("> Each file contains 500 randomly selected configs from all protocols.\n\n")
@@ -4012,6 +3988,17 @@ func writeSummary(results []configResult, failedLinks []string, duration float64
40123988
}
40133989
w.WriteString("\n")
40143990

3991+
3992+
// ── SNI Files table ───────────────────────────────────────────────────────
3993+
w.WriteString("### SNI Configs (server=127.0.0.1, port=40443)\n\n")
3994+
w.WriteString("> These configs have the server address replaced with `127.0.0.1:40443`.\n")
3995+
w.WriteString("> Use them with a local tunnel or gateway.\n")
3996+
fmt.Fprintf(w, "| File | Link |\n|---|---|\n")
3997+
fmt.Fprintf(w, "| All SNI configs (txt) | [all_configs_sni.txt](%s/config/sni/all_configs_sni.txt) |\n", repoBase)
3998+
fmt.Fprintf(w, "| clash_sni.yaml (all protocols) | [clash_sni.yaml](%s/config/sni/clash_sni.yaml) |\n", repoBase)
3999+
fmt.Fprintf(w, "| clash_advanced_sni.yaml | [clash_advanced_sni.yaml](%s/config/sni/clash_advanced_sni.yaml) |\n", repoBase)
4000+
w.WriteString("\n")
4001+
40154002
w.WriteString("### SNI V2ray Batches\n\n")
40164003
fmt.Fprintf(w, "| Batch | Count | Link |\n|---|---|---|\n")
40174004
for i := 1; i <= sniV2rayBatches; i++ {
@@ -4021,11 +4008,16 @@ func writeSummary(results []configResult, failedLinks []string, duration float64
40214008
}
40224009
w.WriteString("\n")
40234010

4024-
w.WriteString("### SNI Clash Batches\n\n")
4025-
fmt.Fprintf(w, "| Batch | Link |\n|---|---|\n")
4026-
for i := 1; i <= sniClashBatches; i++ {
4027-
fmt.Fprintf(w, "| Batch %03d | [batch_%03d.yaml](%s/config/batches/sni_clash/batch_%03d.yaml) |\n",
4028-
i, i, repoBase, i)
4011+
w.WriteString("#### SNI — By Protocol\n\n")
4012+
fmt.Fprintf(w, "| Protocol | Count | V2ray |\n|---|---|---|\n")
4013+
for _, p := range cfg.ProtocolOrder {
4014+
if n := byProtoOut[p]; n > 0 {
4015+
fmt.Fprintf(w, "| %s | %d | [%s_sni.txt](%s/config/sni/protocols/%s_sni.txt) |\n",
4016+
strings.ToUpper(p), n,
4017+
p, repoBase, p,
4018+
p, repoBase, p,
4019+
p, repoBase, p)
4020+
}
40294021
}
40304022
w.WriteString("\n")
40314023

0 commit comments

Comments
 (0)