chore: fix issues #440
This commit is contained in:
parent
13111081be
commit
2f992e9863
1 changed files with 8 additions and 6 deletions
|
@ -45,8 +45,13 @@ func GetFingerprint(ClientFingerprint string) (UClientHelloID, bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fingerprint, ok := Fingerprints[ClientFingerprint]
|
fingerprint, ok := Fingerprints[ClientFingerprint]
|
||||||
|
if ok {
|
||||||
log.Debugln("use specified fingerprint:%s", fingerprint.Client)
|
log.Debugln("use specified fingerprint:%s", fingerprint.Client)
|
||||||
return fingerprint, ok
|
return fingerprint, ok
|
||||||
|
} else {
|
||||||
|
log.Warnln("wrong ClientFingerprint:%s", ClientFingerprint)
|
||||||
|
return UClientHelloID{}, false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func RollFingerprint() (UClientHelloID, bool) {
|
func RollFingerprint() (UClientHelloID, bool) {
|
||||||
|
@ -128,10 +133,7 @@ func SetGlobalUtlsClient(Client string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func HaveGlobalFingerprint() bool {
|
func HaveGlobalFingerprint() bool {
|
||||||
if len(initUtlsClient) != 0 && initUtlsClient != "none" {
|
return len(initUtlsClient) != 0 && initUtlsClient != "none"
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGlobalFingerprint() string {
|
func GetGlobalFingerprint() string {
|
||||||
|
|
Loading…
Reference in a new issue