在validateloginattempt

时间:2015-07-12 01:21:25

标签: meteor

如何在

中获取用户IP

Accounts.validateLoginAttempt(function (attempt) { console.log(attempt) });

我只能看到这个

enter image description here

任何帮助表示赞赏

1 个答案:

答案 0 :(得分:1)

connection.clientAddress为您提供客户端ip作为字符串值。事实上,你在屏幕截图中看到了这一点