temporarily disable ipv6
This commit is contained in:
parent
eb8900c66a
commit
31ce612e2e
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func GetIPPool(stopGrp *stop.Group) (*IPPool, error) {
|
||||||
var pool []throttledIP
|
var pool []throttledIP
|
||||||
for _, address := range addrs {
|
for _, address := range addrs {
|
||||||
if ipnet, ok := address.(*net.IPNet); ok && ipnet.IP.IsGlobalUnicast() {
|
if ipnet, ok := address.(*net.IPNet); ok && ipnet.IP.IsGlobalUnicast() {
|
||||||
if ipnet.IP.To16() != nil && govalidator.IsIPv6(ipnet.IP.String()) {
|
if ipnet.IP.To16() != nil && govalidator.IsIPv6(ipnet.IP.String()) && false {
|
||||||
pool = append(pool, throttledIP{
|
pool = append(pool, throttledIP{
|
||||||
IP: ipnet.IP.String(),
|
IP: ipnet.IP.String(),
|
||||||
LastUse: time.Now().Add(-5 * time.Minute),
|
LastUse: time.Now().Add(-5 * time.Minute),
|
||||||
|
|
Loading…
Reference in a new issue