fix(http): fix the problem that ip_header setting does not take effect (#23)

This commit is contained in:
Li4n0
2021-05-28 19:55:44 +08:00
committed by GitHub
parent b945069117
commit 74f512d214
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -204,8 +204,8 @@ func New(c *Config) *Revsuit {
if c.Token != "" {
s.http.SetToken(c.Token)
}
if c.IpHeader != "" {
s.http.SetIpHeader(c.IpHeader)
if c.HTTP.IpHeader != "" {
s.http.SetIpHeader(c.HTTP.IpHeader)
}
if c.Domain != "" {
s.dns.SetServerDomain(c.Domain)