1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/pkg/drivers/common/ua.go

21 lines
268 B
Go
Raw Normal View History

package common
import (
"github.com/corpix/uarand"
)
const RandomUserAgent = "*"
func GetUserAgent(val string) string {
if val == "" {
return val
}
if val != RandomUserAgent {
return val
}
// TODO: Change the implementation
return uarand.GetRandom()
}