chore: fingerprint style

This commit is contained in:
Skyxim
2022-07-11 13:44:27 +08:00
parent a8ce283727
commit 0c64d7e56a
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import (
"encoding/hex"
"fmt"
xtls "github.com/xtls/go"
"strings"
"sync"
"time"
)
@ -63,8 +62,7 @@ func AddCertFingerprint(fingerprint string) error {
}
func convertFingerprint(fingerprint string) (*[32]byte, error) {
fp := strings.Replace(fingerprint, ":", "", -1)
fpByte, err := hex.DecodeString(fp)
fpByte, err := hex.DecodeString(fingerprint)
if err != nil {
return nil, err
}