mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-06 08:32:03 +00:00
Remove serial.String
This commit is contained in:
1 parent
444808a51a
commit
c75d840706
17 files changed
+89
-164
No files matched your search
@@ -4,8 +4,8 @@ package freedom
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"strings"
|
||||
|
||||
"github.com/v2ray/v2ray-core/common/serial"
|
||||
"github.com/v2ray/v2ray-core/proxy/internal/config"
|
||||
)
|
||||
|
||||
@@ -18,8 +18,8 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
return err
|
||||
}
|
||||
this.DomainStrategy = DomainStrategyAsIs
|
||||
domainStrategy := serial.StringT(jsonConfig.DomainStrategy).ToLower()
|
||||
if domainStrategy.String() == "useip" {
|
||||
domainStrategy := strings.ToLower(jsonConfig.DomainStrategy)
|
||||
if domainStrategy == "useip" {
|
||||
this.DomainStrategy = DomainStrategyUseIP
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user