请教大大这个程序该怎么修改才不会因为超时退出?

mango7158 · 2018-01-23 17:23:41 · 1123 次点击

QQ截图20180125002130.jpg

晕,用了你的直接运行完就没反应了

#4
更多评论

https://gist.github.com/mango7158/01c837111409795bd36881e31fc7d18b/revisions

<br>

目前问题是:timeout之后就结束任务了,我想知道修改哪里可以实现,遇到无法连接的IP就跳过继续执行下一个IP?

<br> 192.168.1.150:6379 is vulnerability, get root's reply: CONFIG SET dbfilename authorized_keys: OK <p> timeout <p> timeout<p> [root@CentOS ~]#<p>

#1
client := redis.NewClient(&redis.Options{
    Addr:     host + ":" + port,
    Password: "",
    DB:       0,
    DialTimeout: 60 * time.Second
})

defer client.Close()

通过redis入侵?

#2