add bailian support (#1319)

Co-authored-by: Kent Dong <ch3cho@qq.com>
This commit is contained in:
rinfx
2024-09-18 16:35:13 +08:00
committed by GitHub
parent 0471249e7f
commit f51408d7ff
4 changed files with 58 additions and 8 deletions

View File

@@ -314,6 +314,10 @@ func (c *ProviderConfig) GetRandomToken() string {
}
}
func (c *ProviderConfig) IsOriginal() bool {
return c.protocol == protocolOriginal
}
func CreateProvider(pc ProviderConfig) (Provider, error) {
initializer, has := providerInitializers[pc.typ]
if !has {