Skip to content

Commit

Permalink
修复pcs_ua和pan_ua无法修改, #918
Browse files Browse the repository at this point in the history
  • Loading branch information
iikira committed Apr 18, 2020
1 parent bf46ffa commit a829eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1739,10 +1739,10 @@ func main() {
pcsconfig.Config.SetUserAgent(c.String("user_agent"))
}
if c.IsSet("pcs_ua") {
pcsconfig.Config.SetUserAgent(c.String("pcs_ua"))
pcsconfig.Config.SetPCSUA(c.String("pcs_ua"))
}
if c.IsSet("pan_ua") {
pcsconfig.Config.SetUserAgent(c.String("pan_ua"))
pcsconfig.Config.SetPanUA(c.String("pan_ua"))
}
if c.IsSet("cache_size") {
err := pcsconfig.Config.SetCacheSizeByStr(c.String("cache_size"))
Expand Down

0 comments on commit a829eef

Please sign in to comment.