Allow configuring if a peer may have 2 IPs

This commit is contained in:
Justin Li
2014-07-23 13:36:31 -04:00
parent b227fc1fcd
commit 8369bbbcd8
4 changed files with 32 additions and 18 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func NewAnnounce(cfg *config.Config, r *http.Request, p httprouter.Params) (*mod
return nil, models.ErrMalformedRequest
}
ipv4, ipv6, err := q.RequestedIP(r, cfg.AllowIPSpoofing)
ipv4, ipv6, err := q.RequestedIP(r, cfg.AllowIPSpoofing, cfg.DualStackedPeers)
if err != nil {
return nil, models.ErrMalformedRequest
}