chore: adjust client-fingerprint's snippet

This commit is contained in:
Larvan2
2023-03-13 07:02:47 +00:00
parent 6f159d0cac
commit c330d2c82c
3 changed files with 36 additions and 31 deletions

View File

@@ -24,6 +24,11 @@ func ParseProxy(mapping map[string]any) (C.Proxy, error) {
switch proxyType {
case "ss":
ssOption := &outbound.ShadowSocksOption{}
if GlobalUtlsClient := tlsC.GetGlobalFingerprint(); len(GlobalUtlsClient) != 0 {
ssOption.ClientFingerprint = GlobalUtlsClient
}
err = decoder.Decode(mapping, ssOption)
if err != nil {
break