Skip to content

Commit 93ca185

Browse files
committed
chore: converter support fingerprint for anytls
1 parent 32d447c commit 93ca185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/convert/converter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
588588
}
589589
insecure, sni := query.Get("insecure"), query.Get("sni")
590590
insecureBool := insecure == "1"
591+
fingerprint := query.Get("hpkp")
592+
591593
remarks := link.Fragment
592594
if remarks == "" {
593595
remarks = fmt.Sprintf("%s:%s", server, portStr)
@@ -601,6 +603,7 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
601603
anytls["username"] = username
602604
anytls["password"] = password
603605
anytls["sni"] = sni
606+
anytls["fingerprint"] = fingerprint
604607
anytls["skip-cert-verify"] = insecureBool
605608
anytls["udp"] = true
606609

0 commit comments

Comments
 (0)